{"id":31792690,"url":"https://github.com/bootc-dev/canon-json-rs","last_synced_at":"2025-10-10T17:15:08.771Z","repository":{"id":299279326,"uuid":"1002297730","full_name":"bootc-dev/canon-json-rs","owner":"bootc-dev","description":"Canonical JSON for Rust, compatible with the canonical implementations from Docker and TUF","archived":false,"fork":false,"pushed_at":"2025-06-23T11:16:46.000Z","size":201,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T03:44:50.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"engineerd/cjson","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bootc-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-15T06:40:52.000Z","updated_at":"2025-09-23T00:26:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"08f51bfe-0c7d-42a5-937f-becc87c9a739","html_url":"https://github.com/bootc-dev/canon-json-rs","commit_stats":null,"previous_names":["containers/canon-json-rs"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bootc-dev/canon-json-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootc-dev%2Fcanon-json-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootc-dev%2Fcanon-json-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootc-dev%2Fcanon-json-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootc-dev%2Fcanon-json-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bootc-dev","download_url":"https://codeload.github.com/bootc-dev/canon-json-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootc-dev%2Fcanon-json-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004825,"owners_count":26083784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-10T17:15:06.237Z","updated_at":"2025-10-10T17:15:08.756Z","avatar_url":"https://github.com/bootc-dev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RFC 8785 Canonical JSON serialization for Rust\n\n[![docs.rs](https://docs.rs/canon-json/badge.svg?version=latest)](https://docs.rs/canon-json)\n[![Crates.io](https://img.shields.io/crates/v/canon-json.svg)](https://crates.io/crates/canon-json)\n\nThis crate provides a [`serde_json::Formatter`](https://docs.rs/serde_json/latest/ser/trait.Formatter.html) to serialize data in canonical JSON form as defined by [RFC 8785](https://www.rfc-editor.org/rfc/rfc8785).\n\n```rust\nuse canon_json::CanonicalFormatter;\nuse serde::Serialize;\nuse serde_json::json;\nlet value = json!({\"b\": 12, \"a\": \"qwerty\"});\nlet mut buf = Vec::new();\nlet mut ser = serde_json::Serializer::with_formatter(\u0026mut buf, CanonicalFormatter::new());\nvalue.serialize(\u0026mut ser).unwrap();\nassert_eq!(buf, br#\"{\"a\":\"qwerty\",\"b\":12}\"#);\n```\n\n## History\n\nThis repository was originally forked from \u003chttps://github.com/engineerd/cjson\u003e as it is unmaintained.\nBut it ended up being redesigned to use the \"formatter\" approach that is used by\n[olpc-cjson](https://docs.rs/olpc-cjson).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootc-dev%2Fcanon-json-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbootc-dev%2Fcanon-json-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootc-dev%2Fcanon-json-rs/lists"}