Crates.io | adventjson |
lib.rs | adventjson |
version | 0.1.1 |
source | src |
created_at | 2021-04-14 16:44:52.250353 |
updated_at | 2021-05-28 10:57:00.129108 |
description | A full json-parser written in Rust for the advent of code challenges |
homepage | |
repository | https://github.com/zvavybir/adventjson/ |
max_upload_size | |
id | 384052 |
size | 71,016 |
A simple JSON library
This is a simple JSON library I wrote for one of the advent of
code challenges, but became a full,
standard complaint JSON parser. To use it just call the
JsonObject::read
function with what you want to have parsed:
use adventjson::JsonObject;
let s = "{\"hello\": \"World\", \"answer\": 42}";
let json_object = JsonObject::read(s)?;
assert_eq!(format!("{}", json_object), s);
This library is distributed under the GPL license.