Added support for enums in toJSONString() method of JSONValue

This commit is contained in:
fmittag committed 2013-08-30 12:36:07 +02:00
1 parent d728386732
commit 0e26eaffa1
44 files changed
+35516 -42

No files matched your search

@@ -219,6 +219,10 @@ public class JSONValue {
if(value instanceof List)
return JSONArray.toJSONString((List<?>)value);
if (value instanceof Enum) {
return '\"' + value.toString() + '\"';
}
return value.toString();
}