NSJSONSerialization and body type //

General discussion about the R.U.B.E editor
Post Reply
cjhorton
Posts: 2
Joined: Thu Feb 21, 2013 1:44 pm

NSJSONSerialization and body type //

Post 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
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: NSJSONSerialization and body type //

Post 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.
cjhorton
Posts: 2
Joined: Thu Feb 21, 2013 1:44 pm

Re: NSJSONSerialization and body type //

Post by cjhorton »

This was just the iOS sample project. Glad those pesky things aren't in the current version anymore :)
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: NSJSONSerialization and body type //

Post 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.
Post Reply