title: How do i send JsonObject with nested values as Post request in REST assured
body: <p>I am using rest assured -<a href="https://code.google.com/p/rest-assured/wiki/Usage" rel="noreferrer">https://code.google.com/p/rest-assured/wiki/Usage</a>
  My JsonObject looks like this</p>
  
  <pre><code>{
  "id": "12",
  "employeeInfo": null,
  "employerInfo": null,
  "checkDate": 1395093997218,
  "netAmount": {
  "amount": 70,
  "currency": "USD"
  },
  "moneyDistributionLineItems": [
  {
  "mAmount": 100,
  "employeeBankAccountId": "BankAccount 1"
  }
  ],
  }
  </code></pre>
  
  <p>how can i send this as part of parameters using REST-assured POST? 
  I have tried </p>
  
  <pre><code>given().param("key1", "value1").param("key2", "value2").when().post("/somewhere").then().
          body(containsString("OK")); 
  </code></pre>
  
  <p>but that is not scalable for HUGE objects with nested values. Is there a better approach?</p>