This project has moved and is read-only. For the latest updates, please go here.

Basic question

Jan 16, 2010 at 1:41 AM

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

Jan 16, 2010 at 6:31 AM



Jan 16, 2010 at 8:53 AM

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

Jan 16, 2010 at 9:01 AM

It's covered in the documentation...

Jan 16, 2010 at 10:11 AM

I'm terribly sorry but i can't find it. I've read 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=""> <param name="movie" value="" /> <param name="flashvars" value="sound_name=" /> <param name="wmode" value="transparent" /> <param name="allowScriptAccess" value="always" /> </object>
Jan 17, 2010 at 8:57 AM

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