FasterXML / FasterXML/jackson-databind

mapper-wide root value naming configuration?

Open
#1,621 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.7k
Forks
1.5k
Avg merge
3d 6h
Merged PRs (30d)
28

Description

Is there a way to specify a strategy for naming root nodes, similar to ``mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);``?

It isn't difficult to add a ``@JsonRootName`` to each class, but specifying a strategy for the entire mapper would be even nicer. Something like ``mapper.setRootNamingStrategy(RootNamingStrategy.LOWER_CASE);``.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.