Skip to content
New issue

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

Does JSON array ordering count as changes? #10

Open
Szeraax opened this issue Aug 19, 2022 · 1 comment
Open

Does JSON array ordering count as changes? #10

Szeraax opened this issue Aug 19, 2022 · 1 comment
Labels
question Further information is requested

Comments

@Szeraax
Copy link
Collaborator

Szeraax commented Aug 19, 2022

At present, JsonUtils will count these two input objects as being different.

Get-JsonDifference '{"a":[1,2,3]}' '{"a":[1,3,2]}'

Is that what you'd expect? Or would you like to see it ignore array ordering?

@Szeraax Szeraax added the question Further information is requested label Aug 19, 2022
@ghost
Copy link

ghost commented Aug 22, 2022

If this is to be implemented, better to add a parameter for it. Something that will indicate array items order is ignored. And array parsing is implemented correctly in the recursion. I've been using this in python https://zepworks.com/deepdiff/5.8.1/diff.html but when I used PowerShell, there was nothing around with similar functionality...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant