inline-json5
This is a small crate to write JsonValue
s in Rust using JSON5 syntax.
It supports interpolation in parentheses and has great error highlighting.
(The macro recovers at each ,
or closing delimiter and can report further errors afterwards.)
use json5;
use JsonValue;
// Example taken from <https://json5.org/>, modified.
let _ = json5!;
The macro is fully hygienic even though it is proc macro backed, and it compiles still quite quickly since Loess is a lightweight macro framework.