JsonValueTool
基于fastjson,快速获取json串中某个key的值
Install / Use
/learn @wind7rui/JsonValueToolREADME
如您觉得该项目对您有用,欢迎点击右上方的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
node-connect
354.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
