We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b212512 commit e53b688Copy full SHA for e53b688
library/src/main/java/com/loopj/android/http/JsonStreamerEntity.java
@@ -192,6 +192,10 @@ public void writeTo(final OutputStream out) throws IOException {
192
os.write('}');
193
} else if (value instanceof JsonValueInterface) {
194
os.write(((JsonValueInterface) value).getEscapedJsonValue());
195
+ } else if (value instanceof org.json.JSONObject) {
196
+ os.write(((org.json.JSONObject) value).toString().getBytes());
197
+ } else if (value instanceof org.json.JSONArray) {
198
+ os.write(((org.json.JSONArray) value).toString().getBytes());
199
} else if (value instanceof Boolean) {
200
os.write((Boolean) value ? JSON_TRUE : JSON_FALSE);
201
} else if (value instanceof Long) {
0 commit comments