Hello. Let's assume I've received an ObjectNode representing the root of a parsed JSON document. I want to extract data from that ObjectNode and therefore I'm going to be manually traversing the tree and unmarshaling fields manually. The JSON document doesn't have a schema, so I'm essentially stuck doing ad-hoc validation when I try to unmarshal fields. In order to avoid driving my users mad, I want to give good error messages such as:
error: Expected an integer value but got a string
Position: file.json:23:0
Key: example_key
Can I actually do this if I only have access to the ObjectNode? I don't
see any obvious way to recover line and column numbers via the API.
M
--
You received this message because you are subscribed to the Google Groups
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.
pgpPnfMhN7WO3.pgp
Description: OpenPGP digital signature
