Return this dictionary as a String in JSON format.
()
| 785 | * Return this dictionary as a String in JSON format. |
| 786 | */ |
| 787 | public String toJSON() { |
| 788 | StringList temp = new StringList(); |
| 789 | for (String item : this) { |
| 790 | temp.append(JSONObject.quote(item)); |
| 791 | } |
| 792 | return "[ " + temp.join(", ") + " ]"; |
| 793 | } |
| 794 | |
| 795 | |
| 796 | @Override |