Advertisement
Guest User

Untitled

a guest
Oct 11th, 2010
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.42 KB | None | 0 0
  1. // "[ { "id": ... }, { "id" : ... } ]"
  2. final List<Map> jsonArray = mapper.readValue(Utils.GoogleRespondToJSON(respond), List.class);
  3. for (int i = 0, size = jsonArray.size(); i < size; i++) {
  4.     final Map<String, String> jsonObject = jsonArray.get(i);
  5.     final double l_curr = Double.parseDouble(jsonObject.get("l_cur").replace(",", ""));
  6.     final double c = Double.parseDouble(jsonObject.get("c").replace(",", ""));
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement