aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java b/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java
index ee9c4d22..76deabb2 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java
@@ -67,7 +67,7 @@ public class JsonFactoryJre implements JsonFactory {
} else if (clz.equals(Date.class)) {
ret = new Date(obj != null ? obj.getLong(attr): arr.getLong(idx));
} else if (clz.equals(String.class)) {
- ret = obj != null ? obj.getString(attr) : arr.getString(idx);
+ ret = String.valueOf(obj != null ? obj.get(attr) : arr.get(idx));
} else if (clz.equals(Boolean.class) || clz.isPrimitive() && clz == Boolean.TYPE) {
try {
ret = obj != null ? obj.getBoolean(attr): arr.getBoolean(idx);