loopj/android-async-http — pull request #667 by wada811 (2014-08-12 02:07:19+00:00)
Title: Not escape nested json value

// expected
// {
// "parent": {
// "childKey": "childValue"
// }
// }
RequestParams requestParams = new RequestParams();
requestParams.setUseJsonStreamer(true);
JSONObject jsonObject = new JSONObject();
jsonObject.put("childKey", "childValue");
requestParams.put("parent", jsonObject);
HttpEntity httpEntity = requestParams.getEntity(null);
OutputStream outputStream = new ByteArrayOutputStream();
httpEntity.writeTo(outputStream);
String actual = outputStream.toString();
// actual
// {
// "parent": "{
// \"childKey\": \"childValue\"
// }"
// }