title: How to convert string into JSONObject?
body: <p>I have a string with value <code>abc@xyz.com.</code>
  I have to pass this value to server like: </p>
  
  <pre><code>{"email":"abc@xyz.com"}
  </code></pre>
  
  <p>I am passing value to server like this using <code>okhttp</code>:</p>
  
  <pre><code>Map&lt;String, String&gt; map = new HashMap&lt;&gt;();
  map.put("email", email);
  new PostMethodWithProgress(login_url, map, this, new Callback()
  {
      @Override
      public void done(String reply)
      {
          try
          {
              JSONObject object = new JSONObject(reply);
  
              if (object.getString("status").equals("200"))
              {
  
                  //Toast Success Message
              }
              else
              {
                  //Toast Failure Message
              }
          }
          catch (Exception e)
          {
              Log.e("ASA", "Error is: " + e);
          }
      }
  }).execute();
  </code></pre>
  
  <p>How do i do it?</p>