Closed wader closed 8 months ago
$ jq -n '" 123 " | tonumber' 123
$ gojq -n '" 123 " | tonumber' gojq: tonumber cannot be applied to " 123 ": invalid number
Closing. jq will be made stricter and match gojq's behaviour instead https://github.com/jqlang/jq/pull/3055
$ jq -n '" 123 " | tonumber' 123
$ gojq -n '" 123 " | tonumber' gojq: tonumber cannot be applied to " 123 ": invalid number