Questions tagged [json-framework]
46 questions
13
votes
8 answers
Replace all NSNull objects in an NSDictionary
I'm curious, I currently have an NSDictionary where some values are set to an NSNull object thanks to the help of json-framework.
The aim is to strip all NSNull values and replace it with an empty string.
I'm sure someone has done this somewhere? No…

Sebastien Peek
- 2,528
- 2
- 23
- 32
8
votes
4 answers
Which json library to use on iphone to consume gson/jackson generated json
I need to build a java based JSON data API that will be accessed from mobile devices: Android, Iphone... I have narrowed down to these:
Server side data api - gson/jackson lib (pojo to json)
Android side - gson/jackson lib (json to pojo)
Iphone…

Ravi
- 3,719
- 6
- 28
- 40
5
votes
1 answer
How to detect JSON object/JSON Array on XCode using JSON-Framework
I have some problem with JSON parsing. When I hit URL, I've got JSON response like this:
//JSON 1
{ "data":
{"array":
["3",
{"array":
[
{"id":"1","message":"Hello","sender":"inot"},
…

inot
- 103
- 1
- 10
4
votes
3 answers
Send NSMutableArray as JSON using JSON-Framework
I'm using JSON-Framework in my project successfully to decode JSON send from a server.
Now I need to do it the other way around and I'm facing problems as the data to be sent is a NSMutableArray fetched from CoreData.
When using
NSString* jsonString…

Michi
- 2,480
- 3
- 28
- 38
4
votes
2 answers
How to parse a JSON having no quotes with its KEY string?
I want to parse the json output resulting from the following url in SBJSON framework for iOS
http://maps.google.com/maps?q=school&mrt=yp&sll=13.006389,80.2575&output=json
while(1);{title:"school - Google…

Firnaz
- 553
- 7
- 31
3
votes
1 answer
Parse JSON data using Asihttprequest and the Json framework for iphone
I've been learning how to parse JSON using the JSON framework and ASIHTTPRequest for iOS. I've tested using twitter feeds and also a custom feed through a community tutorial. All is going well.
I then thought I'll test using the Microsoft Odata…

TheTiger
- 196
- 4
- 11
3
votes
3 answers
JSON error on iPhone app
i am getting error when i try to run an app on my simulator.
I have copied the JSON(JSON Framework) project in my app but my simulator crashes when it compiles the below lines,(I am using iOS 4.2)
- (void)viewDidLoad {
[super viewDidLoad];
…

developer
- 5,178
- 11
- 47
- 72
2
votes
2 answers
Using JSON Framework on iPhone - HELP!
Currently I am using the following code to parse the JSON link sent. This is how I also send a GET call to the Google Reader API for an upcoming iPhone application of mine.
- (NSArray *)subscriptionList
{
if(!cookies && [cookies count] == 0) {
…

Sebastien Peek
- 2,528
- 2
- 23
- 32
2
votes
1 answer
How do I convert NSDecimalNumber to NSInteger?
OK, I'm using a JSON-enabled Rails web-service to provide data to an iPhone application. I'm finding my Integer values (IDs) are being interpreted by the json-framework as a NSDecimalNumber type. I need it as an integer. How can I get an integer…

Dom
- 3,173
- 4
- 30
- 39
2
votes
1 answer
What is the ideal way in the iPhone SDK to handle data coming from a web service?
Currently, we're using ASP.NET asmx web services to interface with our iPhone application.
My question is; whats the most ideal way of converting the responses from the services into objects which are easy to manage in Obj-C.
At present, we have…

Jamie Chapman
- 4,229
- 5
- 29
- 47
2
votes
1 answer
json-framework error in iPhone static library
I have an iPhone app that uses the json-framework. I moved some of the code, including the json-framework source, from the main project to a static library. When I did this, the json-framework stopped getting compiled into the binary (double checked…

David Beck
- 10,099
- 5
- 51
- 88
2
votes
3 answers
json-framework: EXC_BAD_ACCESS on stringWithObject
UPDATE:
I found that the reason for the previous error was an error in the documentation.
The method should be named proxyForJson, not jsonProxyObject...
But I'm still stuck, though.
I now get an EXC_BAD_ACCESS error inside stringWithObject some…

Vegar
- 12,828
- 16
- 85
- 151
1
vote
1 answer
json-framework - Token 'start of array' not expected after outer-most array or object
Feeding the json-parser with the this data: http://mapadosradares.com.br/api/get_initial_load yields this error: Token 'start of array' not expected after outer-most array or object
Here is my code:
- (void)connection:(NSURLConnection *)connection…

Raphael
- 7,972
- 14
- 62
- 83
1
vote
3 answers
Sectioned UITable & JSON
I have been trying for days to figure out how to parse this JSON to a sectioned UITable but I am not successful, I've only been able to figure out how to get the section name, but failed to get each section row count and data for each row in each…

S Arumik
- 633
- 2
- 10
- 21
1
vote
2 answers
C# de-serialise Xml to object and serialise back to Xml again
I would like to use JsonFx to convert XML to/from custom types and LINQ queries. Can anyone please provide an example to de-serialisation and serialisation back again?
Here's an example of the XML I'm working with.
XML pasted here:…

Simon
- 578
- 1
- 9
- 18