How to send nested JSON input to Restful web service (using Java)?
eg. JSON input
{
"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
}
]
}
]
}