package com.dsideal.base.Test; import cn.hutool.core.io.FileUtil; import com.alibaba.fastjson.JSONObject; public class JieXiJson { public static void main(String[] args) { String workingPath = "D:\\dsWork\\YltProject\\ZhuQue\\src\\main\\java\\com\\dsideal\\ZhuQue\\Test\\"; String f85 = workingPath + "85.json";//智门科技 String f134 = workingPath + "134.json";// 科拓 String f161 = workingPath + "161.json";//安快I JSONObject j85 = JSONObject.parseObject(FileUtil.readUtf8String(f85)); System.out.println(JSONObject.parseObject(j85.getString("msg")).getString("Message")); JSONObject j134 = JSONObject.parseObject(FileUtil.readUtf8String(f134)); System.out.println(JSONObject.parseObject(j134.getString("msg")).getString("resMsg")); JSONObject j161 = JSONObject.parseObject(FileUtil.readUtf8String(f161)); System.out.println(JSONObject.parseObject(j161.getString("msg")).getString("msg")); } }