SkillAgentSearch skills...

JsonValueTool

基于fastjson,快速获取json串中某个key的值

Install / Use

/learn @wind7rui/JsonValueTool
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

如您觉得该项目对您有用,欢迎点击右上方的Star按钮,给予支持!

使用样例

json: { "name": "刘禅", "age": "6", "father": { "name": "刘备", "age": "50", "properties": { "country": { "id": "002", "name": "蜀" }, "education": { "description": "学历", "value": "私塾" }, "job": [ { "id": "1", "position": "大王" } ], "wife": { "hasOne": false, "list": [ "糜夫人", "孙夫人", "甘皇后", "吴夫人" ] } } } }

获取job中的position值: JsonUtils.getValueByKeyExpression(json, "father", "father#properties#job#position")

Related Skills

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated3y ago
Forks2

Languages

Java

Security Score

55/100

Audited on May 25, 2022

No findings