日期:2014-05-20 浏览次数:20732 次
String s = "[{'brand':'联想','type':'昭阳笔记本','model':'E46A'},"+ "{'brand':'联想','type':'浪潮服务器','model':'N200'}," + "{'brand':'联想','type':'曙光服务器','model':'3000'}]"; JSONObject jobj = JSONObject.fromObject(s); System.out.println(jobj);
String s = "{'brand':'联想','type':'昭阳笔记本','model':'E46A'}"; JSONObject jobj = JSONObject.fromObject(s); System.out.println(jobj);