Comment #1 on issue 188 by limpbizkit: Support handlers for unknown
properties, useful for error handling
http://code.google.com/p/google-gson/issues/detail?id=188
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.
Issue 262 has been merged into this issue.
It is good to get object instance, but also is useful information about
character position.
Comment #4 on issue 188 by limpbiz...@gmail.com: Support handlers for
unknown properties, useful for error handling
http://code.google.com/p/google-gson/issues/detail?id=188
(No comment was entered for this change.)