2020
10-23
10-23
java json与map互相转换的示例
第一种1.准备工作所需jar包:json-20180130.jar2.json转map用法:JSONObject.toMap();3.map转json用法:newJSONObject(map);4.举例说明publicstaticvoidmain(String[]args){JSONObjectjo=newJSONObject();jo.put("method_code","JMJKK0101");jo.put("identifier","000000000000");jo.put("timestamp","");jo.put("version","Ver1.1");jo.put("area_code","00000000");jo.put("access_typ...
继续阅读 >