Skip to content

JSONPatch.fromJson returning incorrect patch.  #156

@bhatiamayank007

Description

@bhatiamayank007

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions