how to convert org.gson.JsonObject to org.json.JSONObject
<p>I construct the JsonObject on the server, convert it to a string, then send back to client. However, i am failing to reconstruct the json object in android client using <code>JSONObject x = new JSONObject(string)</code> without getting null pointer.</p>

<pre><code>FATAL EXCEPTION: Thread-191

Process: com.venon.jerseytwentythreetwentyfour, PID: 3034
java.lang.NullPointerException
  at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:116)
  at org.json.JSONTokener.nextValue(JSONTokener.java:94)
  at org.json.JSONObject.&lt;init&gt;(JSONObject.java:155)
  at org.json.JSONObject.&lt;init&gt;(JSONObject.java:172)
  at com.venon.jerseytwentythreetwentyfour.Test$1.run(Test.java:45)
  at java.lang.Thread.run(Thread.java:848)
</code></pre>