eiiches/jackson-jq

Infinite and NaN are printed in String

itchyny opened this issue · 1 comments

jq prints 1.7976931348623157e+308 for infinite and null for NaN

 % jq -n 'infinite, infinite/infinite'
1.7976931348623157e+308
null
 % java -jar jackson-jq-cli-1.0.0-preview.20191208.jar -n -- 'infinite, infinite/infinite'
"Infinity"
"NaN"

Perhaps jq should change here? null and NaN are quite different IMO.

Funny though.