Return JSONArray instead of JSONObject, Jersey JAX-RS
问题 I am using Jersey to make some of my services RESTful. My REST service call returns me {"param1":"value1", "param2":"value2",...."paramN":"valueN"} But, I want it to return ["param1":"value1", "param2":"value2",...."paramN":"valueN"] What are the changes I need to make in the code below? @GET @Produces(MediaType.APPLICATION_JSON) public List<com.abc.def.rest.model.SimplePojo> getSomeList() { /* Do something */ return listOfPojos; } Part of my web.xml file looks like this <servlet> <servlet