Basic question

Jan 16, 2010 at 12:41 AM

Do we need to decorate every class we want to serialize/deserialize with JsonObject attribute?

Coordinator
Jan 16, 2010 at 5:31 AM

No.

 

Jan 16, 2010 at 7:53 AM

So what are the cases when you have to explicitly use JsonObject attribute bedsides Collection inheritance?

Coordinator
Jan 16, 2010 at 8:01 AM

It's covered in the documentation...

Jan 16, 2010 at 9:11 AM

I'm terribly sorry but i can't find it. I've read http://james.newtonking.com/projects/json/help/SerializationAttributes.html but there is no list when use or not use this attribute (JsonObject). I have a class witch is in one level inheritance and without JsonObject attribute, it deserializes properly (without exception or error) but object values are not substituted. When JsonObject attribute is explicitly used everything works fine. So the only thing i want is some simple tip when use this attribute because i have many of those classes and it will be difficult to maintenance especially if there is no need to use it explicitly as you sad.

Thank you for your patience.

<object id="tts_object" width="18" height="18" type="application/x-shockwave-flash" data="http://www.gstatic.com/translate/sound_player.swf"> <param name="movie" value="http://www.gstatic.com/translate/sound_player.swf" /> <param name="flashvars" value="sound_name=" /> <param name="wmode" value="transparent" /> <param name="allowScriptAccess" value="always" /> </object>
substitute
Coordinator
Jan 17, 2010 at 7:57 AM

It should work without it. Can you give me the code as an example of what you're doing?