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);
|
||||
} else if (objValue instanceof Bundle) {
|
||||
jsonArray.put(convertToJSON((Bundle) objValue));
|
||||
} else if (objValue instanceof Integer) {
|
||||
jsonArray.put(objValue);
|
||||
} else {
|
||||
throw new IllegalArgumentException("Unsupported type: " + objValue.getClass());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user