Skip to content

Per-type config override "JsonFormat.Shape.OBJECT" for Map.Entry not working  #1895

@mcortella

Description

@mcortella

Hi, after updating from a 2.0.x version of jackson to 2.9.2 we faced an issue with the serialization of Map.Entity as reported also here #565. One of the proposed solution to have a backward-compatibility to versions prior to 2.5, as a default, is this one:

ObjectMapper mapper = new ObjectMapper(); mapper.configOverride(Map.Entry.class).setFormat(JsonFormat.Value.forShape(JsonFormat.Shape.OBJECT));

But unluckly is not working. Is there a way to fix that or have a similar solution without using annotations?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions