title: JSON object from java ObjectName.toString
body: <p>I have a java object witch generates this output when i type objectName.toString() :</p>
  
  <pre><code>Bus [id=1, nextStationID=0, previousStationID=0]
  </code></pre>
  
  <p>Is there a JSON parser that lets me make a JSON from the string that my object generates?
  something like: <code>JsonObject x = new JsonObject(busObject.toString())</code></p>
  
  <p>It is important for me to generate it from the string that i get when calling the .toString method.</p>
  
  <p>Any help is appreciated.</p>