Skip to content
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

Fix for JSONPointer, for stleary/JSON-Java#233 #234

Merged
merged 1 commit into from
May 21, 2016
Merged

Conversation

erosb
Copy link
Contributor

@erosb erosb commented May 16, 2016

No description provided.

@stleary
Copy link
Owner

stleary commented May 16, 2016

What problem does this code solve?
Users should have the option of performing a JSONObject or JSONArray JSONPointer query without an exception being thrown when the string does not match an item in the document. The optQuery() methods support this option.

Changes to the API?
Yes. 2 new public methods are defined:

  • Object JSONObject.optQuery(String)
  • Object JSONArray.optQuery(String)

Does it break the unit tests?
No, but new unit tests will be added after this commit. Those tests will fail unless this code is committed. See stleary/JSON-Java-unit-test#48.

Will this require a new release?
No, but this will be rolled into the next release, which is expected in May-June 2016 timeframe.

Should the documentation be updated?
Yes. The JavaDoc should be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants