Merge pull request #912 from robotal/patch-2

Add Integer serialization to JSON converter
This commit is contained in:
Michael Diarmid 2018-03-27 07:38:20 +01:00 committed by GitHub
commit 802557652d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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());
}