{"username":"john",
"Location":"India"}
我只使用JSON对象的WCF服务,但我不知道从没有JSON Array获取价值。请帮助任何想法如何使用android获取价值JSON
答案 0 :(得分:0)
可能对你有所帮助
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();
}