Android从JsonObject中提取String

时间:2017-11-26 16:17:49

标签: android

这是我的json结构:

[{"id":"112","image_data":"http:\/\/elogistic.890m.com\/images\/111.png","image_tag":"232188933"},{"id":"113","image_data":"http:\/\/elogistic.890m.com\/images\/112.png","image_tag":"232188933"},{"id":"114","image_data":"http:\/\/elogistic.890m.com\/images\/113.png","image_tag":"232188933"}]

我怎样才能获得String" image_data"每个String的每个对象? 例如:

String 1 = "image_data"of object1
String 2 = "image_data"of object2

非常感谢

1 个答案:

答案 0 :(得分:0)

尝试以下代码。这是从您的回复中获取图像数据的示例,您需要根据您的要求对其进行修改

#!/usr/bin/env bash
java -classpath logger/bin:banking/bin banking.Launcher