Crates.io | nop-json |
lib.rs | nop-json |
version | 2.0.5 |
source | src |
created_at | 2019-12-30 18:35:25.479311 |
updated_at | 2021-09-12 21:51:47.419214 |
description | JSON serialization/deserialization (full-featured, modern, optimal, streaming, direct into struct, binary-ready) |
homepage | |
repository | https://github.com/jeremiah-shaulov/nop-json |
max_upload_size | |
id | 193586 |
size | 162,373 |
This is full-featured modern JSON implementation according to ECMA-404 standard.
This crate allows deserialization of JSON Iterator<u8>
stream into primitive types (bool
, i32
, etc.),
Strings and any other types that implement special trait called TryFromJson
, which can be implemented
automatically through #[derive(TryFromJson)]
for your structs and enums.
And serialization back to JSON through DebugToJson
trait, that acts like Debug, allowing to
print your objects with println!()
and such. Or through WriteToJson
trait that allows to write
to a io::Write
stream.
This crate allows to read whitespece-separated JSON values from stream in sequence. It also allows to pipe blob strings to a writer.