diff options
-rw-r--r-- | src/com/vaadin/terminal/gwt/server/JsonCodec.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/JsonCodec.java b/src/com/vaadin/terminal/gwt/server/JsonCodec.java index b693514a66..71e4727164 100644 --- a/src/com/vaadin/terminal/gwt/server/JsonCodec.java +++ b/src/com/vaadin/terminal/gwt/server/JsonCodec.java @@ -517,6 +517,8 @@ public class JsonCodec implements Serializable { return connector.getConnectorId(); } else if (value instanceof Enum) { return encodeEnum((Enum<?>) value, application); + } else if (value instanceof JSONArray || value instanceof JSONObject) { + return value; } else { // Any object that we do not know how to encode we encode by looping // through fields |