0

I have a nested object e.g

{   
"driverNumber": 1,
"expressCustomerNumber": 34637593,
"salutationCode": "1",
"firstName": "firstName",
"lastName": "lastName",
"birthday": "1971-04-09T00:00Z",
"placeOfBirth": "",
"birthCountryCode": "",
"address": {
    "isoCountryCode": "US",
    "state": "TX",
    "postCode": "77363",
    "city": "city",
    "street": "street"
    }
}

and since my application level property-naming-strategy: SNAKE_CASE so it accepts driver_number(not driverNumber), I can add JsonProperty annotation at each attribute but I don't want to do that. Any other way to read the object.

MikNiller
  • 1,242
  • 11
  • 17
Sonwani
  • 1
  • 1
  • 2
  • please refer to this question https://stackoverflow.com/questions/10519265/jackson-overcoming-underscores-in-favor-of-camel-case – ChenZhou Dec 04 '19 at 06:20
  • I had resolved it by specifying PropertyNamingStrategy in ObjectMapper. – Sonwani Apr 27 '20 at 22:22

0 Answers0