The class I'm serializing:
public class LogsDTO {
/** The logs. */
private List<LogDTO> logs;
/** Meta data. */
private Meta meta = new Meta();
// more
}
And the generated JSON:
{"LogsDTO":{"logs":[{"id":11,"archived":false}],"meta":{"totalPages":0}}}
I'd like my JSON to look like:
{"logs":[{"id":11,"archived":false}],"meta":{"totalPages":0}}
Is there a way to annotate so that this happens?
Thanks