Json decoding in Android

后端 未结 2 1780
隐瞒了意图╮
隐瞒了意图╮ 2020-12-18 18:02

I am facing an difficulty in decoding an json string. Below is my json string:

{
    \"udeals\":\"[{\\\"vName\\\":\\\"bussinessname3\\\",\\\"vAddress\\\":\\\         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-18 18:06

    this json can be parse using the following code.

    str=""
    try {
                        JSONObject jObject=new JSONObject(str);
                        JSONArray menuObject = new JSONArray(jObject.getString("udeals"));
    
                        for (int i = 0; i

提交回复
热议问题