導入org . JSON . JSON exception;
公共類test2 {
公共靜態void main(String[] args)引發JSONException {
String str = "[{'columnid': 5,' columnname':' human history' },{'columnId':2,' column name ':' business vision ' } ";
JSONArray jsonArray = null
JSON array = new JSON array(str);
system . out . println(JSON array . getjson object(0))。get(" column name "));
}
}
需要介紹壹下json.jar