https://github.com/llogiq/lib_json
Allocationless Json Parsing
https://github.com/llogiq/lib_json
Last synced: 2 months ago
JSON representation
Allocationless Json Parsing
- Host: GitHub
- URL: https://github.com/llogiq/lib_json
- Owner: llogiq
- Created: 2016-03-02T23:09:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-02T23:11:00.000Z (about 9 years ago)
- Last Synced: 2025-01-20T06:15:39.464Z (4 months ago)
- Language: Rust
- Size: 979 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
lib_json
---Allocationless parsing of json files in Rust.
How does it work?
Add it to your Cargo.toml
[dependencies]
lib_json = { git = "https://github.com/valarauca/lib_json" }Import it into your source
extern crate lib_json;
use lib_json::Json;
Call it: (Returns an option none on parsing error)let json = Json::new( s: &str ).unwrap();
Its very easy to work with:
pub enum Json<'a> {
Var(&'a str),
Obj(BTreeMap<&'a str,Json<'a>>),
Vec(Vec)
}