Skip to content

Error handling "null" String when Feature.MINIMIZE_QUOTES is active #116

@stefanleh

Description

@stefanleh

When serializing a String with content "null" and Feature.MINIMIZE_QUOTES is active the "null" value does not get quoted. Therefore when deserializing the value is not a String but null.

In com.fasterxml.jackson.dataformat.yaml.YAMLGenerator.writeString(String) there is a special handling for boolean content like "true" and "false". Therefore id suggest to add special handling for "null" and "NULL" string values there as well.

What do you think about that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions