Skip to content

Allow "Serialize as POJO" using @JsonFormat(shape=Shape.OBJECT) class annotation #476

@hesamwls

Description

@hesamwls

I read here http://www.cowtowncoder.com/blog/archives/2013/10/entry_482.html that @JsonFormat(shape=Shape.OBJECT) must work for both collection and map types but my tests shows it doesn't work for a class that implements Map Interface.
some digging in code approved my initial guess as there's no checking for JsonFormat in BasicSerializerFactory.buildMapSerializer unlike buildCollectionSerializer method.
now I am not sure that blog is official or not, but is there any technical reason to not implement this feature for Map or it's just forgotten?!

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