Skip to content

Change ObjectMapper.valueToTree() to convert null to NullNode #2430

@cowtowncoder

Description

@cowtowncoder

It looks like valueToTree() method will currently simple return null if null is passed.
For many other conversions this makes sense, but in case of JsonNode, it would make more sense to return NullNode.

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