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なので、driver_number(driverNumberではない)を受け入れるので、各属性にJsonPropertyアノテーションを追加できますが、そうしたくありません。オブジェクトを読み取るその他の方法。

4

0 に答える 0