if (profileListObj != null && profileListObj instanceof JSONArray) {
JSONArray profiles = (JSONArray) profileListObj;
int profileSize = profiles.length();
for (int a = 0; a < profileSize; a++) {
JSONObject jObj = profiles.getJSONObject(a);
Profile p = new Profile();
p.id = jObj.getLong("id");
p.url = jObj.getString("url");
p.name = jObj.getString("name");
p.picSquare = jObj.getString("pic_square");
p.type = jObj.getString("type");