Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Multimap Serializer doesn't honor @JsonInclude(JsonInclude.Include.NON_EMPTY) #41

@olvesh

Description

@olvesh

The code below will give the following json object:

{"someMap" : { }}

and I would expect

{ }

This happens also when I confiugre the mapper to:

mapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    class MainClass {
        @JsonProperty
        Multimap<String, String> someMap = ArrayListMultimap.create();
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions