Add following annotation:
@JsonFormat(shape=JsonFormat.Shape.ARRAY)
class Endpoint {
}
and it should serialize entries as you wish.
Also: it'd be safest to then use @JsonPropertyOrder({ .... } )
to enforce specific ordering, as JVM may or may not expose fields or methods in any specific order.