43,15 → 43,18 |
JSONValue jsonValue= JSONParser.parse(str); |
JSONArray jsonArray; |
JSONArray jsonArrayNested; |
JSONString jsonString; |
|
|
if ((jsonArray = jsonValue.isArray()) != null) { |
for (int i = 0; i < jsonArray.size(); ++i) { |
if ((jsonArrayNested = jsonArray.get(i).isArray()) != null) { |
if ((jsonString = (jsonArrayNested.get(0)).isString()) != null) { |
autoCompletebox.addItem(((JSONString) jsonArrayNested.get(0)).stringValue(),((JSONString) jsonArrayNested.get(1)).stringValue()); |
} |
} |
} |
} |
|
autoCompletebox.displayList(); |
|