title: How do I make the toString() of the JSONObject encode the UTF-8 characters to unicode like in json_encode of PHP?
body: <p>In Java (using for Android), here are the code lines:</p>
  
  <pre><code>org.json.JSONObject array = new org.json.JSONObject("{\"value\":\"aész\"");
  System.out.println("RES: " + array.toString());
  </code></pre>
  
  <p>The output I want: </p>
  
  <blockquote>
    <p>RES: {"value":"a\u00e9sz"}</p>
  </blockquote>
  
  <p>When it is actually: </p>
  
  <blockquote>
    <p>RES: {"value":"aész"}</p>
  </blockquote>
  
  <p>How do I make the JSONObject <code>toString()</code> method return the JSON String encoded with unicode values in the UTF-8 special characters, like the <code>json_encode(array("value", "aész"));</code></p>
  
  <p>Thanks in advance.</p>