5051525354555657585960
if (field == null || field.isEmpty()) { field = "text"; } List<String> complete = api.complete(query, field); JSONObject json = new JSONObject(); json.put("query", query); json.put("suggestions", complete);