adobe / json-formula

Query language for JSON documents
http://opensource.adobe.com/json-formula/
Apache License 2.0
19 stars 8 forks source link

Unexpected behavior with arrays and objects in "unique" #134

Closed Eswcvlad closed 5 months ago

Eswcvlad commented 5 months ago

Test expression

unique([`null`, `false`, `true`, 1, "1", [1, 2, 3], {a: 1}, `null`, `false`, `true`, 1, "1", [1, 2, 3], {a: 1}])

returns

[null, false, true, 1, "1", {"a": 1}, {"a": 1}]

I.e. arrays just get skipped and equivalent objects remain.