Supprimer la citation de l'JSONArray de sortie

Sur le succès de l'appel, je reçois le JSONArray avec la touche "objets" et de nouveau le testValue avec la clé "nom". La sortie est identique:

"Abcd"
"Wxyz"

Mon code est comme suit:

public void onSuccess(JSONValue val) {
    JSONObject obj = val.isObject();
    JSONArray test = JSONUtil.getJSONArray(test, "objects");
    for (int i = 0; i < test.size(); i++) {
        JSONObject childJSONObject = (JSONObject) test.get(i);
        JSONValue testValue = childJSONObject.get("name");
        System.out.println(testValue);
    }
}

Souhaitez imprimer le nom comme suit: (Sans les guillemets)

Abcd
Wxyz

OriginalL'auteur Ask | 2014-02-19