java读取json文件进行解析,String转json对象

String jsonFilePath = "C:/a.json";
File file = new File(jsonFilePath );
String input = FileUtils.readFileToString(file,"UTF-8");
JSONObject obj = new JSONObject(input);

  

猜你喜欢

转载自www.cnblogs.com/hyh123/p/10136422.html