have a method which returns an object containing a list. if the list is only one element long the JSON drops the '[' ']' which confuses our client software.
@GET
@Path("list")
@Produces("application/json")
public Three findThreeList()
generated output without brackets:
{"three":{"ones":
}}
if multi items in list it's correct:
{"three":{"ones":[
,
{"first":"next"}]}}