Merge pull request #912 from robotal/patch-2
Add Integer serialization to JSON converter
This commit is contained in:
commit
802557652d
|
@ -166,6 +166,8 @@ public class BundleJSONConverter {
|
||||||
jsonArray.put(objValue);
|
jsonArray.put(objValue);
|
||||||
} else if (objValue instanceof Bundle) {
|
} else if (objValue instanceof Bundle) {
|
||||||
jsonArray.put(convertToJSON((Bundle) objValue));
|
jsonArray.put(convertToJSON((Bundle) objValue));
|
||||||
|
} else if (objValue instanceof Integer) {
|
||||||
|
jsonArray.put(objValue);
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Unsupported type: " + objValue.getClass());
|
throw new IllegalArgumentException("Unsupported type: " + objValue.getClass());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue