Skip to content

Broken result for diff('[{"hi": "wombat"}]','[]') #83

@shoffmeister

Description

@shoffmeister

Running

import jsondiff
jsondiff.diff('[{"hi": "wombat"}]','[]')

yields

'[]'

which is unexpected - there clearly is a difference.

Also consider that

jsondiff.diff('[]', '[{"hi": "wombat"}]')

i.e. with the arguments simply swapped, yields

'[{"hi": "wombat"}]'

which is what I would expect from that diff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions