Closed GoogleCodeExporter closed 9 years ago
ok I found that I should use the SerializationContext
but I think the option to not display the comment should be enabled by default
Original comment by sylvain....@gmail.com
on 23 Jul 2009 at 8:30
That's potentially a good idea, I'll consider that.
Original comment by elliott....@gmail.com
on 23 Jul 2009 at 1:01
and actually also to disable by default the output of the type
SerializationContext context = new SerializationContext();
context.OutputTypeComment = false;
context.OutputTypeInformation = false;
Original comment by sylvain....@gmail.com
on 23 Jul 2009 at 1:14
Actually what you want is the SetJsonStrictOptions:
context.SetJsonStrictOptions();
Original comment by elliott....@gmail.com
on 24 Jul 2009 at 2:18
Could it be the default option?
Original comment by sylvain....@gmail.com
on 24 Jul 2009 at 8:51
Original comment by elliott....@gmail.com
on 11 Jan 2010 at 3:27
Original issue reported on code.google.com by
sylvain....@gmail.com
on 23 Jul 2009 at 8:03