0

我有一个嵌套对象,例如

{   
"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"
    }
}

并且由于我的应用程序级别的属性命名策略:SNAKE_CASE 所以它接受驱动程序编号(不是驱动程序编号),我可以在每个属性处添加 JsonProperty 注释,但我不想这样做。读取对象的任何其他方式。

4

0 回答 0