I ask everyone has multiple jsonobject
jsonarrayIf I want to delete the specified index of jsonobject how to delete?
jsonarray Lane did not see the remove method.
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
I just checked, there jsonArray.remove (index) method
Reply:
Does not seem right
Reply:
lz solve this problem?
android does not remove the JSONArray this method. But net.sf.json.JSONArray there. . .
Some people say that you can use the put (index, null) to achieve, but it will generate a null data in the JSONArray
Reply:
remove method is very unique to the new version of the SDK is compatible considered, or do not call.
Can be achieved with a third-party library, or on their own copy of the new JSONArray, remove the key to be deleted
Reply:
Re-placed in a new jsonarray
No comments:
Post a Comment