 <p>You can achieve this using Jackson JSON library: <a href="http://jackson.codehaus.org/" rel="nofollow">http://jackson.codehaus.org/</a></p> <p>One good tutorial which particularly addresses nested objects is here: <a href="http://www.mkyong.com/java/how-to-convert-java-object-to-from-json-jackson/" rel="nofollow">http://www.mkyong.com/java/how-to-convert-java-object-to-from-json-jackson/</a></p> <p>Apart from these, Google is your friend :)</p>