This is the code I am using to get string coming through a SBJson parsing:
NSMutableArray *abc=[jsonData valueForKey:@"items"];
NSString *imgStr=(NSString *)[abc valueForKey:@"image"];
NSLog(@"%@",imgStr);
here abc is NSMutableArray
and the…
I'm using SBJSON in a project and I'm trying to build a json string from a dictionary.
Here's what's going on, I'm putting floats as NSNumbers into a dictionary:
NSDictionary* tempdic = [[NSDictionary alloc] init];
tempdic = [NSDictionary…
Hi I am making an iPhone app where in I am getting response from webservice in JSON format. I am using SBJSON Parser for parsing my data.
I am getting an error while I try parsing the data.
I have reffered to following links but none of them did…
Here, I tried to send Asynchronous call to python server using SBJson framework. For continuous multiple call with same request, gives null value in response string.
here, what I tried :
- (NSURLConnection *) GetHttpConnection:(NSString…
I've some problems trying to parse Json using SBJson, I did some research and I can't find something helpfull...
I followed some blog about how to do it, but I still get that error : "__NSArrayM objectForKey:"
So this is the Json I'm trying to parse…
I am lending the code from a previous project I have done where it worked perfectly. I have tested the page separately which outputs the data using jQuery and it works fine so I know it is an issue within xcode.
I am using the following code which…
I have encountered this error:
No visible @interface for 'NSString' declares the selector 'JSONValue'.
The error occurs on:
NSDictionary * root = [responseString JSONValue];
NSArray *data = [root objectForKey:@"data"];
does anyone know how to…
I am trying to parse NSArray to JSON but I get the following error:
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM
JSONRepresentation]: unrecognized selector sent to instance 0xa93e460'
* First…
I am working on JSON data parsing with lots of images downloading and data parsing.I have following code for parsing
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
NSString *responseString = [[NSString alloc]…
I am working on a webservice in Json with SBJson.
When I receive something like that there is no problem :
{"error":"The operation failed"}
But When I receive something like that, it crashes the app :
[{"id":"29"}]
Does anybody have an idea…
I've read a lot of topics about this issue. But none of them really describes my problem.
So one the solutions to solve the errors that are occuring if you combinate facebookSDK with JSON is to rename the JSON classes that are causing a conflict.
SO…
I have recently started Application development on MAC OS 10.6, I am trying to modify a "key/value" pair in a local JSON file on my MAC machine using SBJSON. I have successfully read the value of a key, but I am not able to get that how to modify…
I'm trying to parse the following JSon (which was validated I think last time I checked):
{
"top_level" = (
{
"download" = "http:/target.com/some.zip";
"other_information" = "other info";
…