1、JSON对象---JSONObject
{"fbaCode":"PHX4","fromProvince":"310000","fromCity":"310100","fromProvince":"310000"}
2、JSON数组---JSONArray
[{"fbaCode":"PHX4","fromProvince":"310000","fromCity":"310100","fromProvince":"310000"},{"fbaCode2":"PHX4","fromProvince2":"310000","fromCity2":"310100","fromProvince2":"310000"}]
3、JSON字符串
'{"name":"张三","sex":"男"}'
4、混合
=转换=========
1、string ->json
String json
JSONObject jsonObject = new JSONObject(json)
2、字符串数组转相对应的集合实体类 包:com.alibaba.fastjson
List
3、实体类转json字符串
String s = com.alibaba.fastjson.JSON.toJSONString(model)
4、集合转JsonArray 数组
List
JSONArray.toJSON(models)