Skip to content

Include a test or example of object ID handling for a custom type (custom serialization) #1822

Open
@dweiss

Description

@dweiss

As discussed on the mailing list [1], the point of such an example would be to show to how serialize an object graph where an object of a custom type (serialization and deserialization) is referenced within the serialized tree (by some ID).

The scenario here can vary from very simple (a single type with custom serializer/ deserializer) to quite complex, where there is an interface and a mix of subclasses: some implementing default Jackson id-ref resolution, some requiring a custom serializer. Then the problem becomes twofold because we need to serialize the type information and ids/references.

[1] https://groups.google.com/forum/#!topic/jackson-user/9kjAxNPkl_U

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation-related task

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions