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

Missing overridden method JsonMergePatch.toString() #19

Closed
jesperdj opened this issue Apr 28, 2019 · 0 comments · Fixed by #56
Closed

Missing overridden method JsonMergePatch.toString() #19

jesperdj opened this issue Apr 28, 2019 · 0 comments · Fixed by #56

Comments

@jesperdj
Copy link

When I call toString() on a JsonPatch object, I get the patch in JSON format as a string.

When I call toString() on a JsonMergePatch object, I get: org.glassfish.json.JsonMergePatchImpl@47c62251

It looks like the implementation of JsonMergePatch in the JSON-P reference implementation does not have an overridden toString() method, which seems inconsistent.

Please override toString() in the implementation of JsonMergePatch to return the patch as JSON.

@lukasj lukasj transferred this issue from jakartaee/jsonp-api Jun 8, 2021
@lukasj lukasj linked a pull request May 25, 2022 that will close this issue
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 a pull request may close this issue.

1 participant