Trailing commas

269 views
Skip to first unread message

yhw

unread,
Jun 27, 2011, 8:53:34 AM6/27/11
to google-gson
Is it possible to force gson to ignore trailing commas when parsing
JSON? If it is not, may I ask to add a corresponding configuration
option to the GsonBuilder class?

Joel

unread,
Jun 27, 2011, 10:28:36 PM6/27/11
to google-gson
Seems reasonable....I have to put a little more thought into how that
interacts with the "serialize null" feature (i.e. if set to false it
skips serializing a null).

I am all for "accept lenient" and "produce strict".
Reply all
Reply to author
Forward
0 new messages