Return this dictionary as a String in JSON format.
()
| 801 | * Return this dictionary as a String in JSON format. |
| 802 | */ |
| 803 | public String toJSON() { |
| 804 | StringList items = new StringList(); |
| 805 | for (int i = 0; i < count; i++) { |
| 806 | items.append(JSONObject.quote(keys[i])+ ": " + values[i]); |
| 807 | } |
| 808 | return "{ " + items.join(", ") + " }"; |
| 809 | } |
| 810 | |
| 811 | |
| 812 | @Override |