Page 1 of 1

NSJSONSerialization and body type //

Posted: Thu Feb 21, 2013 2:06 pm
by cjhorton
Hi Chris,

I am playing around with the iOS sample project and NSJSONSerialization. It gives a parsing error due to the comments after the body type (ex. "type" : 2 //dynamic). This seems to be the only field that retains these comments.

Is this intentional and in the current version (I am still playing with the trial)?

Thanks,

Jay

Re: NSJSONSerialization and body type //

Posted: Fri Feb 22, 2013 1:36 am
by iforce2d
Early versions of b2dJson and RUBE used to put those comments in, until I also ran into problems and took them out. I just checked with the current version (1.1.1) to make sure, and it is not adding those comments.

oh... are you talking about the free version? I have not updated that in a while, so perhaps it is still doing things the old way. I will update it sometime, but I'm traveling at the moment and away from my dev env.

Re: NSJSONSerialization and body type //

Posted: Fri Feb 22, 2013 3:47 am
by cjhorton
This was just the iOS sample project. Glad those pesky things aren't in the current version anymore :)

Re: NSJSONSerialization and body type //

Posted: Fri Feb 22, 2013 10:11 am
by iforce2d
ah, ok. Some of the .json files for the iOS sample have been around for quite a while. Maybe they were created before I took out the comments.