Add a parent node to Json output in java
<p>I have converted some info to Json format using Jackson in Java. Below is the output I get </p>

<p><code>[{"lat":45.9,"lon":10.9,"title":"Title A1","html":"&lt;h3&gt;Content A1&lt;/h3&gt;","icon":"http://maps.google.com/mapfiles/markerA.png"},{"lat":44.8,"lon":1.7,"title":"Title B1","html":"&lt;h3&gt;Content B1&lt;/h3&gt;","icon":"http://maps.google.com/mapfiles/markerB.png","show_infowindow":false},{"lat":51.5,"lon":-1.1,"title":"Title C1","html":"&lt;h3&gt;Content C1&lt;/h3&gt;&lt;p&gt;Lorem Ipsum..&lt;/p&gt;","zoom":8,"icon":"http://maps.google.com/mapfiles/markerC.png"}]</code></p>

<p>My question is how can I get it in the below format, basically adding the Json to a root node which called locations</p>

<p><code>{"locations":[{"lat":45.9,"lon":10.9,"title":"Title A1","html":"&lt;h3&gt;Content A1&lt;/h3&gt;","icon":"http://maps.google.com/mapfiles/markerA.png"},{"lat":44.8,"lon":1.7,"title":"Title B1","html":"&lt;h3&gt;Content B1&lt;/h3&gt;","icon":"http://maps.google.com/mapfiles/markerB.png","show_infowindow":false},{"lat":51.5,"lon":-1.1,"title":"Title C1","html":"&lt;h3&gt;Content C1&lt;/h3&gt;&lt;p&gt;Lorem Ipsum..&lt;/p&gt;","zoom":8,"icon":"http://maps.google.com/mapfiles/markerC.png"}]}</code></p>