We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, i've got two json files:
old.json
{ "network": { "domain": "old.domain" } }
new.json
{ "network": { "domain": "new.domain" } }
When i run:
jsondiff.diff(old_json, new_json, syntax="symmetric")
I've got this:
{ "network": { "domain": [ "old.domain", "new.domain" ] } }
Instead of:
{ "network": { "domain": { "$delete": [ "old.domain" ], "$insert": [ "new.domain" ] } } }
The json expected that I've written is probably not right, it's just an example to show the diff keys I expect.
It is normal behavior? Did I forget something?
The text was updated successfully, but these errors were encountered:
Definitely looks like a bug. I reproduced it with the CLI tool and it works for non-symmetric:
> jsondiff old.json new.json -i 2 { "network": { "domain": "new.domain" } }
> jsondiff old.json new.json -i 2 -s symmetric { "network": { "domain": [ "old.domain", "new.domain" ] } }
Sorry, something went wrong.
No branches or pull requests
Hi, i've got two json files:
old.json
new.json
When i run:
I've got this:
Instead of:
The json expected that I've written is probably not right, it's just an example to show the diff keys I expect.
It is normal behavior? Did I forget something?
The text was updated successfully, but these errors were encountered: