private Label errorMsgLabel = new Label();
void parseJSON(Response response, MultiWordSuggestOracle o) {
//JavaScriptObject jso = parseJson(responseJSON);
System.out.println("Got some JSON");
JSONValue val = JSONParser.parseStrict(response.getText());
JSONObject ob = val.isObject();
JSONValue value = null;
if (type == "name_first") {
value = ob.get("firstName");
}
else if (type == "name_last") {
value = ob.get("lastName");
}
JSONArray a = value.isArray();
//System.out.println("printing last name" + a.get(0));
o.clear();
for (int i=0; i<a.size(); i++) {
o.add(a.get(i).isString().stringValue());
//System.out.println("adding: " + a.get(i));