I have seen topics like this but there is no one that seems to solve my problem. Receiving:
("Function: 1738 Main St, Job Details: Established Floor, Worker: Jim Davis, Sweeper: John Jones", "Action Name: 300 Market St, Task Decryption
is the code that I'm finally using to create an NSDictionary:
NSURL * url = [NSURL URL With string: MY_JSON_URL] NSDTa * data = [NSDTATA DATAVITY content of URL: url]; NSDictionary * JSONDictionary = [NSJSNSRialogeson JSONObjectWithData: data options: kNilOptions error: NULL]; NSArray * JSONarray = [JSONDictionary value forKeyPath: @ "feed.entry. The array values are correct, but when I am in the dictionary, the content is correct. $ String Key, then the key is not present NSLog (@ "Dictionary Content =% @", Car Field [@ "Job Name"]);
I'm new on JSON so that any help greatly appreciated!
The JSON you are receiving is not valid, so the key 'workname' does not exist. It should be in the following formats:
[{"taskname": "1738 main st", "performance": "installed floor", "worker": "Jim Davis", "John" "Johns Johnson"}, "Taschem": "300 Market St.", "Task Discription": "Painted Roof", "Employee": "John Smith", "Sweeper": "Bob Johnson"}]
No comments:
Post a Comment