0
{"username":"john",
"Location":"India"} 

I have WCF service using JSON Object only but i don't know get value from without JSON Array.Please help any idea how to get value JSON using android

M.Vel
  • 1
  • 1

1 Answers1

0

Might be helpful for you

String fulURL = URL + "/GetLoginDetails/"
                + mtxt_UserID.getText().toString() + "/"
                + mtxt_Password.getText().toString() + "/" + deviceId;
        JSONObject jobject = doResponse(fulURL);

        if (jobject != null) {
            try {
                jarray = jobject.getJSONArray("GetCompanyInfo");
                status = jarray.getString(0);
            } catch (JSONException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }
Vikash Kumar
  • 395
  • 5
  • 17