title: Add Convert to JSONObject
body: <p>I'm trying to figure out how to add the following data to my json object. Could someone show me how to do this.</p>
  
  <p>{
      "main_img":"Base64 String"
  }</p>
  
  <p>However, the following is the result of using this code, to come out.</p>
  
  <pre><code>final int COMPRESSION_QUALITY = 100;
  String encodedImage;
  ByteArrayOutputStream byteArrayBitmapStream = new ByteArrayOutputStream();
  bitmapPicture.compress(Bitmap.CompressFormat.JPEG, COMPRESSION_QUALITY,
  byteArrayBitmapStream);
  byte[] b = byteArrayBitmapStream.toByteArray();
  encodedImage = "data:image/JPEG;base64," + Base64.encodeToString(b, Base64.DEFAULT);
  
  JSONObject jObject = new JSONObject();
  jObject.put("main_img", result);
  </code></pre>
  
  <p>{
      "main_img":"Base64 String</p>
  
  <p>It is displayed with }, " is missing.</p>