I am passing url to server with some data like this,
     HttpClient httpclient = new DefaultHttpClient();
        HttpPost httppost = new HttpPost(url);
            List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
            nameValuePairs.add(new BasicNameValuePair("firstname",firstname));
            nameValuePairs.add(new BasicNameValuePair("lastname", lastname));
           httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
            HttpResponse response = httpclient.execute(httppost);
it gives response like this
{
      "message": "Successful",
    "data": {
        "user_id": 32,
        "firstname": "myname",
        "lastname": "lastname"
    }
 }
how can i get the user_id from above response or is there any other way. Please tell me how can i solve this issue.Thanks in advance
 
     
     
    