google / json5format

JSON5 (a.k.a., "JSON for Humans") formatter that preserves contextual comments

Home Page:https://crates.io/crates/json5format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider integration with serde

richkadel opened this issue · comments

The Rust serde (serialize/deserialize) API includes a JSON5 parser that converts the data into a Rust in-memory representation. This parser currently ignores comments. The data can be converted back into JSON, but the comments and formatting will be lost.

Consider integrating the json5format capabilities into serde by merging with and extending the current serde JSON5 parser.