converting JSON OBJECT to JSON ARRAY

后端 未结 2 1286
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-16 08:14

This is very simple one but struggeling. help me out of this.

I am having a json data { \"abc\":\"test\",\"bed\":\"cot\",\"help\":\"me\"}

I want to convert a

2条回答
  •  醉酒成梦
    2021-01-16 08:49

    It works for me.

    JSONObject obj = new JSONObject(result.toString()); JSONArray arr = obj.getJSONArray("value");

提交回复
热议问题