SHARE
TWEET

Untitled

a guest Oct 11th, 2010 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top