Skip to content

Adding lists is broken #7

@andreas-gruenbacher

Description

@andreas-gruenbacher

jsondiff.diff([null], [[1]]) should result in:
[{"op":"add","path":"/0","value":[1]}]

But it actually results in:
[{"op":"add","path":"/0/0","value":1},{"op":"replace","path":"/0","value":[1]}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions