swifty-json Questions

3

Solved

I am trying to use swiftyjson and I am getting an Error: Call can throw, but it is marked with 'try' and the error is not handled. I have validated that my source JSON is good. I've been sear...
Rooney asked 31/5, 2017 at 23:52

4

Solved

I have a code, that parses JSON's list of questions and I can get every property. How can I iterate through the whole file and for each question create an object ? class ViewController: UIViewCon...
Sopping asked 27/7, 2015 at 19:24

3

Solved

How do I use SwiftyJSON with Swift3? I've installed the pod. pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git', :branch => 'swift3' But it throws a lot of errors usi...
Holzer asked 13/9, 2016 at 16:41

4

Solved

We are upgrading to SwiftyJSON Swift 3 with CocoaPods config pod 'SwiftyJSON', '3.1.0'. We are getting this error: /Users/xxx/Documents/iOS/xxx/Pods/SwiftyJSON/Source/SwiftyJSON.swift:866:33:...
Mend asked 1/10, 2016 at 15:27

1

I'm installing carthage on a new machine. $ brew install Carthage [in project root] $ emacs Cartfile # Alamofire github "Alamofire/Alamofire" # SwifyJSON github "SwiftyJSON/SwiftyJSON" $ cart...
Samekh asked 1/7, 2015 at 21:31

3

Solved

I am trying to install 'Google-Maps-iOS-Utils' but it gives me above error. Here is Podfile : platform :ios, '9.0' use_frameworks! target 'MapClusters' do pod 'Alamofire' pod 'SwiftyJSON' p...

2

Solved

I'm trying to make the conversion from Objc to swift and have had better days. I have a class with a dictionary: collaborationDictionary:[String:Set<String>] I am trying to write/read t...
Clipfed asked 14/12, 2016 at 14:24

2

Solved

I've been using the simulator to test my app. Today I decided to test it using other devices in the simulator and to my surprise it crashes on startup on some devices, on others it works perfectly ...
Meld asked 5/8, 2015 at 10:33

1

Solved

This was working in Swift2 but now in Swift3 (after automatic conversion) I'm getting an error: if self.entry["scheduler"] || self.entry["owner"] Cannot subscript a value of type 'JSON' with an i...
Chisel asked 6/11, 2016 at 14:51

2

Solved

I'm using Alamofire and SwiftyJSON to get and manage data from an API After making my initial request I end up with nested collection of type JSON According to SwiftyJSON I can loop through data l...
Universalism asked 28/2, 2015 at 10:51

2

Solved

I had been using the following code without issue until updating to Xcode 8 beta 6. It is similar to this example from the Alamofire repository. This morning I updated my Alamofire library to the l...
Carleycarli asked 17/8, 2016 at 18:28

1

I have a project where I'm sending .GET requests to get data from the server and for this I'm using Alamofire & SwiftyJSON. For example: I have file "Links", "Requests" and my ViewController....
Callant asked 6/10, 2016 at 10:52

5

Solved

I recently upgraded my Swift iOS application from Xcode7 to Xcode8 and deployment platform from iOS 9.3 to iOS 10. My application started breaking with errors like this: Module file was created ...
Neman asked 12/9, 2016 at 15:57

4

Solved

My head is going to explode :) - I've been trying to get a JSON String from my server to a Dictionary Value, and I can't get it to work. I'm trying to get (from my Server - this is dynamic and I w...
Distinguish asked 4/3, 2015 at 18:27

4

I recently added SwiftyJSON into my xCode project using Carthage. Cartfile $ cat Cartfile github "SwiftyJSON/SwiftyJSON" >= 2.1.2 I ran this command to install SwiftyJSON $ carthage update ...
Gabbert asked 25/3, 2015 at 5:10

2

Just updated to swift 2.0 and I am having an error. The error I am getting is: 'array' is unavailable: please construct an Array from your lazy sequence: Array(...) My code is: if let credentia...
Phenomenal asked 5/9, 2015 at 1:40

5

Solved

When I am about to fire my segue for the 2nd view I also send some values like this: if let aTime = ads[indexPath.row]["unix_t"].int { toView.time = aTime } if let aTitle = ads[indexPath.row]["t...
Parlour asked 27/6, 2016 at 18:53

3

Solved

This is a sequel to question : dyld: Library not loaded: @rpath/SwiftyJSON.framework/SwiftyJSON After rebuilding the project from scratch (new project, new podfile, new files but in each file copy...
Floranceflore asked 5/8, 2015 at 15:19

3

I am trying to pull out variables (safety_rating_id, score etc.) from an array (called array) based on the submission_id using the swift library Dollar (https://github.com/ankurp/Dollar)'s find met...
Piracy asked 31/5, 2016 at 3:33

1

I would like to obtain specific JSON response. For example, obtaining only the results (i.e. name and score) in the array with id 25 and 26. Is there like a WHERE clause in swift? I'm using Alamofi...
Iliad asked 31/5, 2016 at 8:33

1

Solved

I know about swiftyJSON method exists() but it does not seem to work always as they say. How can I get proper result in this case below? I cannot change JSON structure because I am getting this thr...
Ramonitaramos asked 11/5, 2016 at 15:50

6

I'm trying to find a way to get the value of a key in a SwiftyJSON dictionary and return a default string, if the key is not set. The following example works fine, but I'm not really satisfied. Do ...
Illustration asked 16/12, 2014 at 23:5

2

I want to show the JSON data grabbed from a server on a Table View. The problem is, I can't get it to show up on it. I have tried several different methods and searched a lot to find a solution, bu...
Hamil asked 15/3, 2016 at 18:52

2

Solved

Ok, so I'm using alamofire and the parameters I'm passing are valid. Here is the code so far: Alamofire.request(.POST, "http://mywebservice.com", parameters: myparameters) .response { (request, re...
Catalyst asked 12/3, 2016 at 16:36

2

Solved

I'm looking at the Ray Wenderlich tutorial http://www.raywenderlich.com/90971/introduction-mapkit-swift-tutorial and he is using there this function: class func fromJSON(json: [JSONValue]) -> A...
Quintile asked 21/2, 2016 at 23:13

© 2022 - 2024 — McMap. All rights reserved.