Open rmpt opened 5 years ago
In case someone else runs into this, more background information can be found in this issue: https://github.com/FasterXML/jackson-databind/issues/1015
Workaround: instead of using List<Feature>
, use:
private static class FeatureList extends ArrayList<GeoJsonObject> {};
private final FeatureList features = new FeatureList();
Serialization of feature lists should include the feature type. We are forced to use a FeatureCollection to the type be included in the serialization.