|
|
@ -487,15 +487,17 @@ public class AndroidAPIUtils {
|
|
|
|
for (JsonElement element : jsonArray) {
|
|
|
|
for (JsonElement element : jsonArray) {
|
|
|
|
// if (((JsonObject) element).entrySet().iterator().next().getValue().getAsString().equalsIgnoreCase(needed));
|
|
|
|
// if (((JsonObject) element).entrySet().iterator().next().getValue().getAsString().equalsIgnoreCase(needed));
|
|
|
|
for (Map.Entry<String, JsonElement> ob : ((JsonObject) element).entrySet()) {
|
|
|
|
for (Map.Entry<String, JsonElement> ob : ((JsonObject) element).entrySet()) {
|
|
|
|
|
|
|
|
JsonElement val = ob.getValue();
|
|
|
|
|
|
|
|
if (val != null && !val.isJsonNull()) {
|
|
|
|
if (exist) {
|
|
|
|
if (exist) {
|
|
|
|
return ob.getValue().getAsString().replace("%", "");
|
|
|
|
return val.getAsString().replace("%", "");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
JsonElement val = ob.getValue();
|
|
|
|
if (val.getAsString().equalsIgnoreCase(needed)) {
|
|
|
|
if (val != null && !val.isJsonNull() && ob.getValue().getAsString().equalsIgnoreCase(needed)) {
|
|
|
|
|
|
|
|
exist = true;
|
|
|
|
exist = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|