Issue details: RestEasy + Jettison
When array has two elements the format is :
{"MyArray" : {"Array" : [{"a" : 1, "b" : 2}, {"a" : 3, "b" : 4}]}}
but when the array has single element, the format is :
{"MyArray" : {"Array" : {"a" : 1, "b" : 2}}} ***Missing the []
RestEasy uses the Jettison Mapped format by default which has a known limitation of list of single elements not being returned as an array. As per this discussion, the proposed solution is to use Jackson, but if that is not an option, is there a way to use RestEasy + Jettison and get around the single element array issue?
Jersey has a solution for this issue which uses JSONJAXBContext but how do I fix this in RestEasy?