I would like to know, whats the right structure for a list of objects in JSON.
We are using JAXB to convert the POJO's to JSON.
Here is the choices, Please direct me what is right.
foos: [
foo:{..},
foo:{..}
]
or
foos : [
{...},
{...}
]
If the first structure is right, what is the JAXB annotation I should use to get the structure right.