Skip to content

Custom naming convention for fields (CamelCase, snake_case...) #28

Description

@david-bouyssie

Jackson allows to use custom naming strategies for fields. It implements a configurable PropertyNamingStrategy:
https://fasterxml.github.io/jackson-databind/javadoc/2.7/com/fasterxml/jackson/databind/PropertyNamingStrategy.html

This has also been added to Play Json in the macros system:
https://www.playframework.com/documentation/2.7.x/ScalaJsonAutomated#Custom-Naming-Strategies

Alternatively there is also an additional module for this purpose:
https://github.com/tototoshi/play-json-naming

Do you think this feature could be supported by scala-json?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions