JSONArray represents an indexed array, so its put method takes only a value.
JSONArray代表索引数组,所以它的put方法只接受一个值。
The code in Listing 5 stores data in the JSONArray, which is necessary for loading the initial data of the tree.
清单5中的代码在JSONArray中存储数据,这是加载树的初始数据所需要的。
This article uses JSONObject, JSONArray, and JsonString for the trees so the example gets the data in the right format.
本文使用树的 JSONObject,JSONArray 和 JsonString,所以例子可以获得正确格式的数据。
应用推荐