Skip to content

Serializing locale with underscore, not standard hyphen #1600

@akoshman

Description

@akoshman

There were an issue with deserializing locales #1344

But there is still a problem that during serialization Jackson is executing toString() method for locale. According to the official javadoc, toString() must be used for debug purposes. I think it is better to use toLanguageTag() for the serialization since it produces locale represenation with a hyphen as a delimiter:

https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.xIssues to be only tackled for Jackson 3.x, not 2.x

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions