Map to JSONObject
JSONObject json = JSONObject.parseObject(JSON.toJSONString(itemMap));
JSONObject to Map
Map<String, Object> map = JSONObject.toJavaObject(itemJSONObj, Map.class);
Note: JSON.parseObject() can also convert
List to JSONArray
JSONArray array = JSONArray.parseArray(JSON.toJSONString(itemList));
JSONArray to List
http://www.cnblogs.com/goody9807/p/4244862.html