How to write documentation in swagger for array of objects. This is my code, but I don't know how to access data in array of objects.
{
"first_name":"Sam",
"last_name":"Smith",
"reservations":[
{
"chkin_date":"2016-03-31",
"chkout_date":"2016-04-08",
"adults":1,
"children":2,
"chdage":[2,3]
},
{
"chkin_date":"2016-03-30",
"chkout_date":"2016-04-03",
"adults":1,
"children":2,
"chdage":[2,3,5]
}
]
}