github bruceadams/yj 1.2.0
Preserve order and numeric precision for JSON input

latest releases: v1.2.4, v1.2.3, v1.2.2...
2 years ago

This is fairly subtle. When explicitly choosing json input with the --json option, yj now preserves the order of keys in objects (it had been sorting them alphabetically) and preserves full numeric precision.

For the default input of yaml, order has always been preserved and numeric precision is not preserved. Numerics are converted into integer or float internally then output in the standard format for integer or float.

Don't miss a new yj release

NewReleases is sending notifications on new releases.