-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
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
RFC 6901 (JSON Pointer) support #218
Comments
is this like XML Path but for JSON? |
Exactly (and simpler too). |
Torn between liking the idea and thinking maybe it is not part of the purpose of the lib. Hard to decide because I am not familiar with it - I use JsonPath in the unit tests. JsonPointer does not seem to have wildcards. Is this the case? |
I've never used JsonPath, but it doesn't seem to be a standard, so I would still prefer implementing JSON Pointer. JsonPath also seems to be a more complex language, deserving its own library, while a JSON Pointer implementation would be small-enough to fit into only a few methods in this project. |
Please proceed with JSON Pointer if you are still interested. Let's see what it would look like. |
Please see #222 |
@erosb I expect so. The implementation looks good so far. Have not had a chance to go over the unit test cases or coverage yet. |
What do you think about adding JSON Pointer support to the library?
From the API point of view I think it would mean a new method with a signature like
Object query(String jsonPointer)
, both inJSONObject
andJSONArray
.@stleary if you give green light for this proposal then I may work on it.
The text was updated successfully, but these errors were encountered: