title: Convert DateTime object java to Json string
body: <p>I want to convert date time object in java to json string in format as below:</p>
  
  <pre><code>{"date":"/Date(18000000+0000)/"}
  </code></pre>
  
  <p>I did like this but it didn't give me the format i desired:</p>
  
  <pre><code>JSONObject object = new JSONObject();
  object.put("date",new Date());
  </code></pre>
  
  <p>and the result of object.toString()</p>
  
  <pre><code>{"date":"Fri May 04 11:22:32 GMT+07:00 2012"}
  </code></pre>
  
  <p>i want the string "Fri May 04 11:22:32 GMT+07:00 2012" transform to "/Date(18000000+0000)/" (18000000+0000 here is just a example).</p>
  
  <p>Thanks for your help.</p>