json-peek-0.0.2 doesn't have any documentation.
json-peek
is an amature json parser library design for my specific need.
Don't expect this to be efficient or perfect.
This library will parse json file while also maintain positional information which work really well with codespan-reporting
# use util;
# use *;
let content = r#"
{
"display": {
"title": "Installed Datapacks",
"description": "",
"icon": {
"item": "minecraft:knowledge_book"
},
"background": "minecraft:textures/block/gray_concrete.png",
"show_toast": false,
"announce_to_chat": false
},
"criteria": {
"trigger": {
"trigger": "minecraft:tick"
}
}
}
"#;
let parse_result = from_str.expect;
let title = parse_result.get.get.expect;
assert_eq!;