Skip to content

Proposal: Add new canonical json v2 that is valid JSON in all circumstances #810

@cgwalters

Description

@cgwalters

Moving this from containers/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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions