【发布时间】:2014-06-10 13:41:55
【问题描述】:
我在下面提到了响应代码。
switch(responseCode) {
case 200:
HttpEntity entity = response.getEntity();
if(entity != null) {
String responseBody = EntityUtils.toString(entity);
Log.d("Responce", responseBody.toString());
}
break;
}
此代码显示如下响应:
{"id":9,"name":"babu","role":5,"rights":"IsDelivery","result":"}
我想将每个值存储在单独的字符串中。比如Sting id = 3;Sting name = babu。
请给我解决方案。
【问题讨论】:
-
谢谢大家......它现在完美运行......
-
你也可以解释一下什么对你有用:)
标签: android json parsing http httpresponse