GetJedi/app/src/main/java/edu/getjedi/frontend/mobile/state/ClientLoggedState.java
private void parseResponses(JSONArray action) {
        try {
            if(action.length() > 0) {
                JSONObject obj = action.getJSONObject(0);
                if (obj.has("username")) {
                    users = action;
                } else if (obj.has("professionalId")){
                    services = action;
                }
            }
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }
/**
     * Verifies if the server sent the nearby services or nearby professionals, and stores them in memory,
     * to be represented in the map for the user to navigate.
     */
Verifies if the server sent the nearby services or nearby professionals, and stores them in memory,
to be represented in the map for the user to navigate.
Verifies if the server sent the nearby services or nearby professionals and stores them in memory to be represented in the map for the user to navigate .
private void parseResponses(JSONArray action) {
        try {
            if(action.length() > 0) {
                JSONObject obj = action.getJSONObject(0);
                if (obj.has("username")) {
                    users = action;
                } else if (obj.has("professionalId")){
                    services = action;
                }
            }
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }
private void parseResponses ( JSONArray action ) { try { if ( action . length ( ) > 0 ) { JSONObject obj = action . getJSONObject ( 0 ) ; if ( obj . has ( "username" ) ) { users = action ; } else if ( obj . has ( "professionalId" ) ) { services = action ; } } } catch ( JSONException e ) { e . printStackTrace ( ) ; } }
Verifies if the server sent the nearby services or nearby professionals, and stores them in memory,
 to be represented in the map for the user to navigate.
Verifies if the server sent the nearby services or nearby professionals and stores them in memory to be represented in the map for the user to navigate .