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 "keys" result with null #164

Closed Eswcvlad closed 4 months ago

Eswcvlad commented 4 months ago

With keys, null is not getting coerced to object and throws a TypeError, which is unexpected:

This also contradicts:

If the object is null, the value return an empty array

which is just based on the implicit rule.

Eswcvlad commented 4 months ago

Similar behavior with "values":