java string equality is weird.. type.equals(dataDeeper.getJSONObject(i).getString(name))