We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm accessing an array out-of-bound and I got a NullNode instead of an exception or a java null (if exceptions are suppressed).
This creates ambiguity as following:
{ "grades": [85, 90, 78, null, 44], "p1": null } JsonNode n1 = ctx.read("$.grades[3]"); // NullNode (valid index with null value) JsonNode n2 = ctx.read("$.grades[5]"); // NullNode (out of bounds) JsonNode n3 = ctx.read("$.p1"); // NullNode (existing property with null value) JsonNode n4 = ctx.read("$.p2"); // Exception or null (nonexistent property)
no way of distinguish an out-of-bound access from an existing null element
IMO array element access should behave like property access
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm accessing an array out-of-bound and I got a NullNode instead of an exception or a java null (if exceptions are suppressed).
This creates ambiguity as following:
no way of distinguish an out-of-bound access from an existing null element
IMO array element access should behave like property access
The text was updated successfully, but these errors were encountered: