JSON 格式说明
一维json
{ "sn" : "CS20160918095444121640", "suitstypes_id" : "47", "test" : "0", "type" : "4" }
二维json
[ { "mac" : "98:7B:F3:35:FE:B6", "name" : "FitSca_X03_1wu", "sn" : "JYDA160501000018", "type" : "5" }, { "mac" : "98:7B:F3:35:FE:B6", "name" : "FitSca_X03_1wu", "sn" : "JYDA160501000018", "type" : "5" }, { "mac" : "98:7B:F3:35:FE:B6", "name" : "FitSca_X03_1wu", "sn" : "JYDA160501000018", "type" : "5" } ]
json 格式要求
①一维json以花括号包裹, 如 {"key":"value"}
②多对key-value 用逗号分隔,且最后的key-value 不能出现逗号 {"key1":"value1","key2":"value2"}
③二维json最外层为中括号 "[ ]"