Open GoogleCodeExporter opened 9 years ago
I think a reasonable fix for this would be to permit the user to register a
handler to be notified whenever an unknown property is encountered. Perhaps
this:
interface UnknownFieldHandler {
void handle(JsonObject object, String name, JsonElement value);
}
Then we could build in a few implementations: one that ignores unknown fields,
one that logs unknown fields, and one that throws on unknown fields. Users
could configure their GSON to be as strict or forgiving as necessary.
Original comment by limpbizkit
on 3 Nov 2010 at 4:53
Issue 262 has been merged into this issue.
Original comment by limpbizkit
on 30 Dec 2011 at 6:38
It is good to get object instance, but also is useful information about
character position.
Original comment by mst...@gmail.com
on 30 Dec 2011 at 7:33
Original comment by limpbizkit
on 12 Feb 2012 at 8:44
Yuk
Original comment by timpyates@gmail.com
on 3 Dec 2012 at 6:18
A handler might not be very Gsonic, but some way to let the Gson client know
that extraneous metadata existed in the subject JSON would be useful.
Original comment by joeym...@gmail.com
on 7 Jan 2013 at 9:05
we have been hacked and have not agreed to your terms
Original comment by timpyates@gmail.com
on 13 Jan 2013 at 2:17
please help get these people out of our stuff. fbi has been notified and law
enforcement report filed. sincerely,
the real timpyates
Original comment by timpyates@gmail.com
on 13 Jan 2013 at 2:19
Original comment by limpbizkit
on 4 Feb 2013 at 4:00
Issue 495 has been merged into this issue.
Original comment by limpbizkit
on 4 Feb 2013 at 4:01
Any new about this enhancement ? or a workaround ?
Original comment by ghislain...@gmail.com
on 11 Mar 2014 at 9:41
Original issue reported on code.google.com by
mperdik...@gmail.com
on 22 Jan 2010 at 10:13Attachments: