Skip to content

JsonValue.NULL deserialization has different behaviours with constructor properties vs public properties #19

Closed
@xdrsynapse

Description

@xdrsynapse

Describe the bug
Deserializing a missing property to JsonValue while using constructor properties should set java null instead JsonValue.null, this when deserializing to class with public properties works wel..

Version information
2.13.1

To Reproduce
JsonValueTest.txt

Expected behavior
When missing property map to java null and when property is null map to JsonValue.NULL.

Additional context
We are using this to know when we when we should do nothing (java null) and when we must set the value to null in database (JsonValue.NULL)

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.14Intended for version 2.14.xjsr-353Issue related to JSR-353/JSONP datatype module

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions