title: how to convert json into string without line break and the other format
body: <p>I'm setting up a new server and android, and want to send base64(image) from android to server. I use JSON for data format between android and server, so I have to put my base64 into that JSON, but the server cannot decode my base64 because there are a symbol like "\n,+," and many more. I also try using Notepad for replace "\n" but still the server wont decode it..</p>
  
  <p>note:
  if I use Postman the server work properly</p>
  
  <pre><code>JSONArray data = new JSONArray();
  
  for (int i = 0; i &lt; listImage.size(); i++) {
      //listImage.get(i).setBase64(map.get(listImage.get(i).getId()));
      jsonObject = new JSONObject();
      jsonObject.put("id",listImage.get(i).getId());
      jsonObject.put("base64",map.get(listImage.get(i).getId()));
      data.put(jsonObject);
  }
  
  jsonObject = new JSONObject();
  jsonObject.put("image",data);
  </code></pre>