Preserve order and numeric precision for JSON input
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.