java-json-tools/json-patch

JSONPatch.fromJson returning incorrect patch.

Opened this issue · 0 comments

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"}