当前位置:网站首页>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");
边栏推荐
- 终于搞懂了JS中的事件循环,同步/异步,微任务/宏任务,运行机制(附笔试题)
- Learn the method code of using PHP to realize the conversion of Gregorian calendar and lunar calendar
- Topology architecture of the minimum deployment of tidb cluster
- 17_ Redis_ Redis publish subscription
- Map introduction
- LeetCode_ Sliding window_ Medium_ 395. Longest substring with at least k repeated characters
- PHP method to get the index value of the array item with the largest key value in the array
- LeetCode_ String_ Simple_ 412.Fizz Buzz
- N皇后问题的解决
- XML Configuration File
猜你喜欢

How to choose a third-party software testing organization for automated acceptance testing of mobile applications

Data analysis thinking analysis methods and business knowledge - business indicators

5. Practice: jctree implements the annotation processor at compile time

08_ strand

语义分割学习笔记(一)

XML Configuration File

05_队列

03_线性表_链表

08_ 串

Yolo format data set processing (XML to txt)
随机推荐
怎样从微信返回的json字符串中截取某个key的值?
04_ Stack
彻底弄懂浏览器强缓存和协商缓存
02_线性表_顺序表
15_ Redis_ Redis. Conf detailed explanation
二叉树的遍历方式主要有:先序遍历、中序遍历、后序遍历、层次遍历。先序、中序、后序其实指的是父节点被访问的次序。若在遍历过程中,父节点先于它的子节点被访问,就是先序遍历;
07_哈希
Summary of the first three passes of sqli Labs
党史纪实主题公益数字文创产品正式上线
How to find a sense of career direction
[solution] educational codeforces round 82
Build your own semantic segmentation platform deeplabv3+
12_Redis_Bitmap_命令
4. Data splitting of Flink real-time project
How to write sensor data into computer database
Common English abbreviations for data analysis (I)
2022 年辽宁省大学生数学建模A、B、C题(相关论文及模型程序代码网盘下载)
FPGA - 7系列 FPGA内部结构之Clocking -03- 时钟管理模块(CMT)
Map introduction
Beijing rental data analysis