You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 in JSONObject and JSONArray.
@stleary if you give green light for this proposal then I may work on it.
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.
Activity
johnjaylward commentedon Apr 12, 2016
is this like XML Path but for JSON?
erosb commentedon Apr 12, 2016
Exactly (and simpler too).
stleary commentedon Apr 13, 2016
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?
erosb commentedon Apr 13, 2016
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.
stleary commentedon Apr 16, 2016
Please proceed with JSON Pointer if you are still interested. Let's see what it would look like.
stleary commentedon Apr 28, 2016
Please see #222
erosb commentedon Apr 28, 2016
@stleary will youl merge #222 ?
stleary commentedon Apr 28, 2016
@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.
README improvements for stleary#218