S
S
student_12022-04-08 13:59:57
Java
student_1, 2022-04-08 13:59:57

How to make low_case keys and value of incoming json in java?

json flies to my controller, but there the keys-values ​​are in upper case, since json is too big it is too routine to ask for pojo @JsonProperty
Question: is it possible to make them automatically in lower case in java?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2022-04-08
@student_1

this is described in
https://www.baeldung.com/jackson-advanced-annotati...
The @JsonNamingannotation is used to choose the naming strategies for properties in serialization, overriding the default. Using the value element, we can specify any strategy, including custom ones.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question