title: How to post nested json in restassured
body: <p>Below is the code I am using</p>
  <pre><code>JSONObject requestParams = new JSONObject();
  requestParams.put(&quot;something&quot;, &quot;something value&quot;);
  requestParams.put(&quot;another.child&quot;, &quot;child value&quot;);
  </code></pre>
  <p>This is how the api needs to be posted</p>
  <pre><code>{
  
     &quot;something&quot;:&quot;something value&quot;,
     &quot;another&quot;: {
     &quot;child&quot;: &quot;child value&quot;
     }
  }
  </code></pre>
  <p>I get an error stating that the</p>
  <blockquote>
  <p>The another.child field is required.</p>
  </blockquote>
  <p>How do I go about posting this via restAssured? The other APIs do not require posting with nesting work so I'm assuming that's why it's failing.</p>