@ZeroGeek
2015-08-27T11:08:07.000000Z
字数 814
阅读 765
基础知识
参考:
http://ningg.top/json-java-api/
http://ifeve.com/json-java-api/
http://blog.csdn.net/lk_blog/article/details/7685190
http://www.importnew.com/14509.html
JSON(JavaScript Object Notation),轻量级的数据交换格式,易于阅读和编写,同时机器也很容易输出JSON格式、解析JSON格式。JSON是完全独立于语言的文本格式,这使其成为理想的数据交换语言。
简单示例:
{
"empID": 100,
"name": "David",
"permanent": false,
"address": {
"street": "BTM 1st Stage",
"city": "Bangalore",
"zipcode": 560100
},
"phoneNumbers": [
123456,
987654
],
"role": "Manager",
"cities": [
"Los Angeles",
"New York"
],
"properties": {
"age": "28 years",
"salary": "1000 Rs"
}
}