Gson 設定

Gson 設定

{
    "countryId": 1,
    "shopAreaId": 1,
    "shopId": 1,
    "teamOrder": 0,
    "isPartyWinner": false,
    "completeDatetime": "Aug 16, 2019 7:31:50 AM"
}
Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ssX")
.setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES).create();
{
    "country_id": 1,
    "shop_area_id": 1,
    "shop_id": 1,
    "team_order": 0,
    "is_party_winner": false,
    "complete_datetime": "2019-08-16T07:31:50.000+08:00"
}