其他分享
首页 > 其他分享> > JSONObject和JSONArray总结

JSONObject和JSONArray总结

作者:互联网

数据形式

JSONObject的数据是用 {  } 来表示的,

       例如:   { "id" : "123", "courseID" : "huangt-test", "title" : "提交作业", "content" : null  }  

而JSONArray,顾名思义是由JSONObject构成的数组,用  [ { } , { } , ......  , { } ]  来表示

       例如:   [ {  "id" : "123", "courseID" : "huangt-test", "title" : "提交作业" }  ,  {  "content" : null, "beginTime" : 1398873600000  "endTime" } ] ;表示了包含2个JSONObject的JSONArray。

标签:总结,title,JSONArray,JSONObject,courseID,null,id
来源: https://www.cnblogs.com/shenhaha520/p/12525439.html