deser-hj
Hjson support for
deser. Hjson is JSON for humans, a
format for configuration files: comments (#, // and /* */), optional
commas, keys and strings without quotes, multiline strings and maps without
braces at the root.
Note that the deser-hjson crate
is entirely unrelated to this crate and deser, it is a Hjson deserializer
for serde.
let config: Config = from_str.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
Numbers, true, false and null without quotes are implicit values: an
u16 receives 8080 as number, a String as "8080". Otherwise it
works like deser-json and serializes JSON
(which is valid Hjson). The parser and the serializer are generated from
the ones of deser-json (see deser-template-json in the repository) and
passes the Hjson test suite.