How to populate data to a Json Template
<p>I have a Json Format as a Template (Temp.json). Below is the format of my Template</p>

<pre><code>{
  "products":[
    {
      "ProductTitleName": "",
      "ImageUrl":""
    }
  ]
}
</code></pre>

<p>Now I have to Populate Data to this format, basically <strong>products</strong> array will have many object Nodes. I have used JsonPath expressions to extract relevant attribute value from Raw Json.My Problem is how can I use this Template and Populate data to this structure.</p>

<p><code>Reason to use Template Json</code> - </p>

<ol>
<li>I used a Template json to avoid pojo classes </li>
<li>Though JsonPath expressions helps to extract necessary attributes and set them to target attribute final Json out put result I build previously is on-the-fly (Runtime).</li>
<li>If suppose I'm going to add another attribute along with those attributes later, it would be easier and to good avoid code changes.</li>
</ol>

<p>so to avoid those mentioned reasons, I planned to have a Template json and adhere to that structure, is this a good approach, if so help me out to populate data to the template, if not help me out with a better approach.</p>