Closed GoogleCodeExporter closed 9 years ago
At the class level might look like this:
[JsonExOmitDefaults]
public class MyClass {
...
The default value would just be the framework default for the class unless the
user
overrides it with maybe special handling for string also check for empty string.
To set globally:
serializer.Context.OmitDefaults = true;
This property would be off by default. Not sure how useful the global property
would
be, since its a little dangerous.
Original comment by elliott....@gmail.com
on 23 Jul 2008 at 1:08
Original comment by elliott....@gmail.com
on 2 Jul 2009 at 12:22
Release 3.1
Original comment by elliott....@gmail.com
on 16 Apr 2010 at 3:51
Original issue reported on code.google.com by
elliott....@gmail.com
on 23 Jul 2008 at 1:02