We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7f7355 commit 2a2a4c8Copy full SHA for 2a2a4c8
cucumber-core/src/main/java/io/cucumber/core/plugin/Jackson.java
@@ -9,10 +9,14 @@
9
import com.fasterxml.jackson.databind.json.JsonMapper;
10
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
11
12
+import static com.fasterxml.jackson.annotation.JsonInclude.Value.construct;
13
+
14
final class Jackson {
15
public static final ObjectMapper OBJECT_MAPPER = JsonMapper.builder()
16
.addModule(new Jdk8Module())
- .serializationInclusion(Include.NON_ABSENT)
17
+ .defaultPropertyInclusion(construct(
18
+ Include.NON_ABSENT,
19
+ Include.NON_ABSENT))
20
.constructorDetector(ConstructorDetector.USE_PROPERTIES_BASED)
21
.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING)
22
.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING)
0 commit comments