当前位置:网站首页>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");
边栏推荐
猜你喜欢
随机推荐
13_ Redis_ affair
10_Redis_geospatial_命令
Tidb data migration scenario overview
【网络安全】网络资产收集
08_ 串
08_ strand
工程师评测 | RK3568开发板上手测试
TiDB混合部署拓扑
4. Data splitting of Flink real-time project
Party History Documentary theme public welfare digital cultural and creative products officially launched
Common English abbreviations for data analysis (I)
14_ Redis_ Optimistic lock
Bing. Site Internet
Force deduction solution summarizes the lucky numbers in 1380 matrix
Facing the challenge of "lack of core", how can Feiling provide a stable and strong guarantee for customers' production capacity?
13_Redis_事务
Real estate market trend outlook in 2022
Record an interview
Force deduction solution summary 2029 stone game IX
15_ Redis_ Redis. Conf detailed explanation









