Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Json array of object compare #460

Closed
marglix opened this issue Feb 28, 2023 · 1 comment
Closed

Json array of object compare #460

marglix opened this issue Feb 28, 2023 · 1 comment

Comments

@marglix
Copy link

marglix commented Feb 28, 2023

Hi, I have one problem with json. I want compare some json array regardless of the order. For example:
[ { "name": "some_name" }, { "name": "some_another_name" } ],
and
[ { "name": "some_another_name" }, { "name": "some_name" } ],

@norberttech
Copy link
Member

Technically speaking it is possible through pattern expanders, it might not be the easiest one to build but combination of hasProperty(), isNotEmpty(), inArray() and oneOf() should do the trick

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants