Skip to content

Pass one more argument to JsonSerializer.isEmpty() #588

Closed
@cowtowncoder

Description

@cowtowncoder

Currently JsonSerializer.isEmpty() only takes a single argument, value to check.
But since some of configuration settings affect determination of emptiness (specifically, SerializationConfig.getSerializationInclusion()), it would make sense to pass SerializationConfig.
But it may be that some other per-call information will also be needed, so let's instead pass SerializerProvider, which gives full access to all available configuration.

Existing method needs to be deprecated, but supported for at least until 2.6 (and probably later); existing serializers should be upgrade in 2.5 to work with both methods.

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