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

JSONPatch.fromJson returning incorrect patch. #156

Open
bhatiamayank007 opened this issue Nov 7, 2023 · 0 comments
Open

JSONPatch.fromJson returning incorrect patch. #156

bhatiamayank007 opened this issue Nov 7, 2023 · 0 comments

Comments

@bhatiamayank007
Copy link

When converting a jsonnode to a json patch, all decimal values I try to modify or append to the applied JSON record are written as strings rather than as numbers.
Expected output:
{"length": 0.5, "width": 0.7, "height": 0.3}

Actual output:
{"length": "0.5", "width": "0.7", "height": "0.3"}

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

No branches or pull requests

1 participant