Return this dictionary as a String in JSON format.
()
| 792 | * Return this dictionary as a String in JSON format. |
| 793 | */ |
| 794 | public String toJSON() { |
| 795 | StringList items = new StringList(); |
| 796 | for (int i = 0; i < count; i++) { |
| 797 | items.append(JSONObject.quote(keys[i])+ ": " + values[i]); |
| 798 | } |
| 799 | return "{ " + items.join(", ") + " }"; |
| 800 | } |
| 801 | |
| 802 | |
| 803 | @Override |