├── README.md └── img ├── 1.3.png ├── 主界面.png └── 演示.gif /README.md: -------------------------------------------------------------------------------- 1 | # JsonPath-Plus数据提取工具 2 | 仿DevUtils的JSON工具,Windows平台"UI界面操作/系统兼容性佳/便携离线/支持格式化、自动纠错、数据过滤提取"的JSON数据提取工具 3 | 4 | 基于开源项目JSONPath Plus和json-viewer,使用语句测试如下([ 完整帮助文档 ](https://jsonpath-plus.github.io/JSONPath/docs/ts/index.html#syntax-through-examples)): 5 | ``` 6 | | JSONPath | 备注 7 | |-------------------------------------------|------------------------------------------------------ 8 | | $..* | 提取所有值 9 | | $..type | 提取全部type字段值 10 | | $.uuids..type或者$.uuids[*].type | 提取uuids节点下面全部type字段值 11 | | $.uuids.*~ | 提取uuids节点下面所有key名称 12 | | $..*[?(@.str)][id,str] | 提取包含str字段的全部节点id和str字段值 13 | | $..*@number() | 提取全部数字值 14 | | $..*@string() | 提取全部文本值 15 | | $..*[?(@.id>5005)].type | 提取id大于5005的全部type字段值 16 | | $..toppings[1:3] | 提取toppings下面第2、3个节点 17 | | $..toppings[1:9:2] | 从toppings下面第2节点开始在范围内每隔2个提取 18 | | $.toppings.*[?(@property.match(/^str/i))] | 提取toppings节点下面所有以"str"开头(正则)的key对应值 19 | ``` 20 | 21 | ### 说明 22 | 1. 功能增强:支持JSONPath Plus表达式(兼容JSONPath),功能更强、例见上表; 23 | 富文本框支持JSON文件拖放打开(兼容常见文本格式)、按住Ctrl+滚轮 无极缩放字体大小 24 | 2. 便利性增强:增加常用格式化、排序、缩进等功能;输入JSONPath时"$"字符可省略; 25 | 右下角编辑框不输入内容直接回车,可快捷触发格式化功能 26 | 3. 容错增强:修复JSON格式常见错误(如"样例"JSON格式有误,纠错后可正确解析) 27 | 28 | ![主界面](https://github.com/playGitboy/JsonPath-Tool/blob/main/img/1.3.png) 29 | 30 | ![使用演示](https://github.com/playGitboy/JsonPath-Tool/blob/main/img/%E6%BC%94%E7%A4%BA.gif) 31 | -------------------------------------------------------------------------------- /img/1.3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/playGitboy/JsonPath-Plus-Extractor/fb84dfeba7902820e4c6617c54d3eb342ec53580/img/1.3.png -------------------------------------------------------------------------------- /img/主界面.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/playGitboy/JsonPath-Plus-Extractor/fb84dfeba7902820e4c6617c54d3eb342ec53580/img/主界面.png -------------------------------------------------------------------------------- /img/演示.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/playGitboy/JsonPath-Plus-Extractor/fb84dfeba7902820e4c6617c54d3eb342ec53580/img/演示.gif --------------------------------------------------------------------------------