lil-json
lil #![no_std] Rust crate to parse & serialize JavaScript Object Notation (JSON). alloc optional. std optional.
JSON can be serialized into any type that implements embedded_io::Write. Serialize a JSON object to stdout with a one-liner!
use stdout;
use FromStd;
use ;
// output: {"some_number":12345,"some_string":"hello world!","some_boolean":true}
the following types are currently supported:
- objects (currently limited to non-nested objects)
- string (currently limited to ascii)
- boolean
- number
the following types are not currently supported:
- arrays
- null
- nested types
TODO:
- support null type
- alloc features
- expose serialization methods for terminal types
- support arrays
- support parsing arbitrary types
- support unicode strings
- support buffered serialization
- support parsing from stream
- support parsing streaming objects/arrays
- support embedded-io-async?