Skip to content

ENH: Add ServerConfig.setJsonInclude(...) ALL, NON_NULL, NON_EMPTY - Add support for suppressing properties that have null values from JSON output aka Jackson mapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY) #280

Closed
@icode

Description

@icode

config ebean and jackson

mapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);
final JsonFactory jsonFactory = mapper.getFactory();
ebeanServerConfig.setJsonFactory(jsonFactory);

but write value

{"prop":null}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions