Return this dictionary as a String in JSON format.
()
| 873 | * Return this dictionary as a String in JSON format. |
| 874 | */ |
| 875 | public String toJSON() { |
| 876 | StringList items = new StringList(); |
| 877 | for (int i = 0; i < count; i++) { |
| 878 | items.append(JSONObject.quote(keys[i])+ ": " + values[i]); |
| 879 | } |
| 880 | return "{ " + items.join(", ") + " }"; |
| 881 | } |
| 882 | |
| 883 | |
| 884 | @Override |