Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeremiah-shaulov/nop-json
JSON serialization/deserialization (full-featured, modern, streaming, direct into struct/enum)
https://github.com/jeremiah-shaulov/nop-json
json
Last synced: 2 months ago
JSON representation
JSON serialization/deserialization (full-featured, modern, streaming, direct into struct/enum)
- Host: GitHub
- URL: https://github.com/jeremiah-shaulov/nop-json
- Owner: jeremiah-shaulov
- License: mit
- Created: 2019-12-29T14:37:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-12T21:50:46.000Z (over 3 years ago)
- Last Synced: 2024-10-11T18:38:09.675Z (3 months ago)
- Topics: json
- Language: Rust
- Homepage:
- Size: 162 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nop-json
[![Documentation](https://docs.rs/nop-json/badge.svg)](https://docs.rs/nop-json)
[![crates.io](https://img.shields.io/crates/v/nop-json.svg)](https://crates.io/crates/nop-json)This is full-featured modern JSON implementation according to ECMA-404 standard.
This crate allows deserialization of JSON `Iterator` 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](https://doc.rust-lang.org/std/fmt/trait.Debug.html), 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.
## Documentation
[Read on crates.io](https://docs.rs/nop-json)