Moving this from bootc-dev/ocidir-rs#10
The canonical JSON spec hasn't changed in ~9 years; maybe there's a better place to engage but as this repo seems actively maintained I'd like to start here.
Basically, canonical JSON encoding newlines literally is problematic as there are valid real-world reasons to want to have newlines in strings. (And I guess theoretically carriage returns)
What do you think about trying to define a new version of the spec that is defined to always escape control characters instead?