deser-json5
JSON5 support for
deser. JSON5 extends JSON with
comments, trailing commas, identifiers as map keys, single quoted strings,
hexadecimal numbers, Infinity, NaN and more.
let config: Config = from_str.unwrap;
assert_eq!;
assert_eq!;
Otherwise it works like deser-json and
serializes JSON (which is valid JSON5, NaN and infinite floats are written
as NaN, Infinity and -Infinity). The parser and the serializer are
generated from the ones of deser-json (see deser-template-json in the
repository).