Skip to content

RFC 6901 (JSON Pointer) support #218

Closed

Description

@erosb

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.

Activity

  1. johnjaylward commented on Apr 12, 2016

    @johnjaylward
    Contributor

    is this like XML Path but for JSON?

  2. erosb commented on Apr 12, 2016

    @erosb
    ContributorAuthor

    Exactly (and simpler too).

  3. stleary commented on Apr 13, 2016

    @stleary
    Owner

    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?

  4. erosb commented on Apr 13, 2016

    @erosb
    ContributorAuthor

    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.

  5. stleary commented on Apr 16, 2016

    @stleary
    Owner

    Please proceed with JSON Pointer if you are still interested. Let's see what it would look like.

  6. stleary commented on Apr 28, 2016

    @stleary
    Owner

    Please see #222

  7. erosb commented on Apr 28, 2016

    @erosb
    ContributorAuthor

    @stleary will youl merge #222 ?

  8. stleary commented on Apr 28, 2016

    @stleary
    Owner

    @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.

  9. added a commit that references this issue on Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions