android - 如何删除JSONArray
天蓬老师
天蓬老师 2017-04-17 15:34:19
0
3
579

JSON文件里保存了多个JSONArray数组如何删除以前的数组保持JSON文件里的数据是最新的

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(3)
PHPzhong

My idea is to read the file and convert it to an array or object, delete the elements you don’t want, convert them back to json, and rewrite the file. Or you can directly replace the data with nothing through string replacement when you clearly know the data you want to delete.

黄舟

Read, deserialize, operate, serialize, write back.

大家讲道理

I don’t understand what I mean. Can you explain it in detail

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template