11智能在线
新记
java怎么通过url获得json数据并解析出来
如题所述
举报该文章
其他看法
第1个回答 2018-05-20
String json = "{\"test\",\"hello world\"}";
JSONObject jsonObject = net.sf.json.JSONObject.fromObject(json);
System.out.println(jsonObject.getString("test"));
//打印hello world
本回答被网友采纳
相似回答
大家正在搜
相关问题
求助,Java中如何根据一个http接口获取JSON数据
java 怎么获取url接口json数据
求助,Java中如何根据一个http接口获取JSON数据
java后台怎么接收并解析前台传过来的json-CSDN论坛
Java如何读取Json里特定的url字段,并打开这个链接?
JAVA后台如何解析和获取JSP页面传过来的JSON格式的数...
怎么从一个url 中获取到返回的json数据
java后台怎么接收并解析前台传过来的json