Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

olpc-cjson != JSON #10

Open
cgwalters opened this issue Aug 2, 2024 · 2 comments
Open

olpc-cjson != JSON #10

cgwalters opened this issue Aug 2, 2024 · 2 comments

Comments

@cgwalters
Copy link
Collaborator

ref ostreedev/ostree-rs-ext#652 (comment)

Today the image spec talks about canonical JSON and specifically links to the OLPC canonical json but:

Quoting https://docs.rs/olpc-cjson/latest/olpc_cjson/

(specifically, ASCII control characters 0x00–0x1f are printed literally, which is not valid JSON). Therefore, serde_json cannot necessarily deserialize JSON produced by this formatter.

The efforts in this area are clearly a mess; the spec also links to a fork of Go's encoding/json that is very dead. Since TUF also uses it, its ecosystem looks a bit more maintained and hmm, maybe we just need to add a PR to canonical-json to add an option to fix this?

@cgwalters
Copy link
Collaborator Author

Ah ah wait, I see olpc-cjson's repo is now at https://github.com/awslabs/tough which definitely looks maintained.

@cgwalters
Copy link
Collaborator Author

cc awslabs/tough#810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant