Using Bookmarks - Geisonszo/TecProg-Emergo GitHub Wiki

//NO COMMENT
//COMPLEX LOGIC

@Override
protected List<List<HashMap<String, String>>> doInBackground(String... jsonData) {

  JSONObject jsonObject;
  List<List<HashMap<String, String>>> routes = null;
  try {

    jsonObject = new JSONObject(jsonData[0]);
    DirectionsJSONParser parser = new DirectionsJSONParser();

    routes = parser.parse(jsonObject);
  } catch (Exception e) {
    e.printStackTrace();
  }

  Log.i("ParserTask","Routes nullity: "+routes.isEmpty());
  return routes;
}