- implement tab indentation option (
--tab
) - implement a compiler option for adding custom internal functions
- implement
gojq.Marshal
function for jq-flavored encoding - fix slurp option with JSON file arguments
- fix escaping characters in object keys
- fix normalizing negative
int64
toint
on 32-bit architecture - fix crash on continuing iteration after emitting an error
iter.Next()
does not normalizeNaN
and infinities anymore. Library users should take care of them. To handle them for encoding as JSON bytes, usegojq.Marshal
. Also,iter.Next()
does not clone values deeply anymore for performance reason. Users must not update the elements of the returned arrays and objects.- improve performance of outputting JSON values by about 3.5 times