adobe / json-formula

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

change toNumber() rules #72

Closed JohnBrinkman closed 1 year ago

JohnBrinkman commented 1 year ago

Currently, toNumber('abc') returns 0, while toNumber(true()) and toNumber(false()) return null toNumber('abc') should return null (with a warning) toNumber(true()) should return 1 toNumber(false()) should return 0