gpt4 book ai didi

android - 如何使用数组改造解析 JSON 对象

转载 作者:行者123 更新时间:2023-12-05 00:10:33 26 4
gpt4 key购买 nike

<分区>

如何使用 android retrofit 获取带有数组的 JSON 对象。我正在使用改造作为 Web API。

我的 JSON 响应如下:-

{
"PnrNumber": "12345665",
"Status": "SUCCESS",
"ResponseCode": "200",
"TrainNumber": "1111",
"TrainName": "ABC",
"JourneyClass": "SL",
"ChatPrepared": "NO",
"From": "TEST1",
"To": "TEST2",
"JourneyDate": "2019-10-01",
"Passangers": [
{
"Passenger": "Passenger 1",
"BookingStatus": "CNF/S4/18",
"CurrentStatus": "CNF/S4/18"
},
{
"Passenger": "Passenger 2",
"BookingStatus": "CNF/S4/19",
"CurrentStatus": "CNF/S4/19"
},
{
"Passenger": "Passenger 3",
"BookingStatus": "CNF/S4/24",
"CurrentStatus": "CNF/S4/24"
}
]
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com