当前位置:网站首页>How to intercept the value of a key from the JSON string returned by wechat?
How to intercept the value of a key from the JSON string returned by wechat?
2022-07-02 15:33:00 【Killer is not too cold!】
How to return from wechat json Truncate a... In the string key Value ?
String result = HttpClientUtil.getMethodApi(uri, mchId, mchSerialNo, apiV3Key, privateKey);
System.out.println("==========>>>>>> Wechat interface returns data :"+result);
/** First return the wechat official json The string is parsed into a json object */
JSONObject object = JSONObject.parseObject(result);
/** And get this json Object's data The value of the property , because data The value of the property is a json Array , So the return value type is JSONArray */
JSONArray data = object.getJSONArray("data");
边栏推荐
- Party History Documentary theme public welfare digital cultural and creative products officially launched
- Solution of Queen n problem
- 19_ Redis_ Manually configure the host after downtime
- Leetcode question brushing - parity linked list 328 medium
- Facing the challenge of "lack of core", how can Feiling provide a stable and strong guarantee for customers' production capacity?
- 15_ Redis_ Redis. Conf detailed explanation
- 如何用 Sysbench 测试 TiDB
- Semantic segmentation learning notes (1)
- How to choose a third-party software testing organization for automated acceptance testing of mobile applications
- 21_ Redis_ Analysis of redis cache penetration and avalanche
猜你喜欢
08_ strand
4. Jctree related knowledge learning
搭载TI AM62x处理器,飞凌FET6254-C核心板首发上市!
Map introduction
03_線性錶_鏈錶
07_哈希
LeetCode刷题——统计各位数字都不同的数字个数#357#Medium
JVM architecture, classloader, parental delegation mechanism
Build your own semantic segmentation platform deeplabv3+
Steps for Navicat to create a new database
随机推荐
Be a good gatekeeper on the road of anti epidemic -- infrared thermal imaging temperature detection system based on rk3568
XML配置文件
02_线性表_顺序表
05_ queue
17_Redis_Redis发布订阅
11_ Redis_ Hyperloglog_ command
[solution] educational codeforces round 82
Application of CDN in game field
Tidb data migration tool overview
. Net again! Happy 20th birthday
Topology architecture of the minimum deployment of tidb cluster
LeetCode_ Sliding window_ Medium_ 395. Longest substring with at least k repeated characters
Leetcode skimming -- sum of two integers 371 medium
Yolo format data set processing (XML to txt)
LeetCode_ String_ Simple_ 412.Fizz Buzz
Real estate market trend outlook in 2022
How to conduct TPC-C test on tidb
04.进入云原生后的企业级应用构建的一些思考
02. After containerization, you must face golang
Force deduction solution summarizes the lucky numbers in 1380 matrix