Retrieve data from Json through php in android?

后端 未结 3 896
梦如初夏
梦如初夏 2021-01-28 05:03

I have the following data in Json how could I retrieve data from this file

{\"first_name\":\"immi\",\"last_name\":\"Ahmad\",\"contact_no\":\"0333333\",\"dob\":\"         


        
3条回答
  •  礼貌的吻别
    2021-01-28 06:07

     JSONObject userinfo= new JSONObject(result);
    
                userinfo.getString("first_name");
    

    Try to Use Gson to simplify it!

提交回复
热议问题