title: How to Create JSON data with some complexity?
body: <p>I want to create json data of format like this:</p>
  
  <pre><code>{
     "Credential":{
        "ref1":"Test",
        "ref2":"test",
        "ref3":"test"
     },
     "ref4":"data"
  }
  </code></pre>
  
  <p>I tried a lot, but i did not find a way to do this. Can anyone please help me.
  <strong>EDIT:</strong></p>
  
  <p>I am able to put the data like below:</p>
  
  <pre><code>   {
        "ref1":"Test",
        "ref2":"test",
        "ref3":"test"
     }
  </code></pre>
  
  <p>Thanks in advance.</p>