mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 06:18:12 +00:00
Added support for enums in toJSONString() method of JSONValue
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user