json-position-parser:具有位置的简单json解析器

时间:2021-02-20 11:53:08
【文件属性】:
文件名称:json-position-parser:具有位置的简单json解析器
文件大小:10KB
文件格式:ZIP
更新时间:2021-02-20 11:53:08
Rust json-position-parser 一个带有位置的简单json解析器。 例子: let json = "{ \"a\": {}, \"b\": { \"c\": [true, { \"e\": 42 } ] }, \"f\": [false, { \"e\": 21 } } ] } }"; match super::parse_json(json) { Ok(tree) => { // // Get value at path // let res = tree.value_at(&[PathType::Object("a")]); // [Entry { key: Some(0), range: Range { start: Position { line: 0, char: 7, idx
【文件预览】:
json-position-parser-master
----src()
--------tree.rs(6KB)
--------types.rs(2KB)
--------lib.rs(4KB)
--------parser()
----Cargo.toml(320B)
----.gitignore(49B)
----README.md(2KB)

网友评论