I am trying to parse a JSON response in flutter but, there is a random "200," in the file and I'm not sure how to parse around it. I need the data from "rate_response", how do I get to it?
The response:
[
200,
{
"rate_response": {
"rates": [
{
"rate_id": "se-449314776",
"rate_type": "shipment",
"carrier_id": "se-496556",
"shipping_amount": {
"currency": "usd",
"amount": 0.51
},
"insurance_amount": {
"currency": "usd",
"amount": 0.0
},
"confirmation_amount": {
"currency": "usd",
"amount": 0.0
},
"other_amount": {
"currency": "usd",
"amount": 0.0
},
"zone": 2,
"package_type": "letter",
"delivery_days": 2,
"guaranteed_service": false,
},
{
"rate_id": "se-449314777",
"rate_type": "shipment",
"carrier_id": "se-496556",
"shipping_amount": {
"currency": "usd",
"amount": 1.0
},
],
}
]