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

上传:pocket4307 浏览: 17 推荐: 0 文件:ZIP 大小:9.57KB 上传时间:2021-02-24 01:45:19 版权申诉
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::Obj
上传资源
用户评论