Converting from JSONArray to String then back again

前端 未结 1 1336
灰色年华
灰色年华 2020-12-03 02:24

I need to store a JSONArray object as a string then retrieve the string and convert it back to a JSONArray.

If I do:

JSONArray jArray;
String s = j         


        
相关标签:
1条回答
  • 2020-12-03 02:47

    As long as it's a valid JSONArray to begin with, then yes.

    0 讨论(0)
提交回复
热议问题