Return this dictionary as a String in JSON format.
()
| 835 | * Return this dictionary as a String in JSON format. |
| 836 | */ |
| 837 | public String toJSON() { |
| 838 | StringList items = new StringList(); |
| 839 | for (int i = 0; i < count; i++) { |
| 840 | items.append(JSONObject.quote(keys[i])+ ": " + values[i]); |
| 841 | } |
| 842 | return "{ " + items.join(", ") + " }"; |
| 843 | } |
| 844 | |
| 845 | |
| 846 | @Override |