Jackson2 Java to Json array ignore field names when creating array
问题 I'm trying to create a Java REST endpoint which returns a JSON data array to be consumed by JQuery FLOT charting plugin. At a minimum, the JSON data for FLOT needs to be an array of numbers i.e. [ [x1, y1], [x2, y2], ... ] Given I have a List of Point objects in Java i.e. List<Point> data = new ArrayList<>(); where Point is defined as public class Point { private final Integer x; private final Integer y; public Point(Integer x, Integer y) { this.x = x; this.y = y; } ... } What methods or