How to send nested JSON input to Restful web service (using Java)?
<p>How to send nested JSON input to Restful web service (using Java)?</p>

<p>eg. JSON input</p>

<pre><code>{
  "item1": [
    {
      "name": "name1",
      "value": "value1",
      "subitems": [
        {
          "sname": "sname1",
          "svalue": "svalue1"
        },
        {
          "sname": "sname2",
          "svalue": "svalue2"
        }
      ],
      "attributes": [
        {
          "length": 25,
          "height": 25,
          "width": 30
        },
        {
          "length": 35,
          "height": 35,
          "width": 40
        }
      ]
    }
  ]
}
</code></pre>