How can I access the luggage information in this JSON?
P粉401527045
2023-07-28 14:50:26
<p>How do I access baggage information in this JSON? </p>
<pre class="brush:php;toolbar:false;">{
"Response": {
"Results": [
[{
"Segments": [
[{
"Baggage": "2 PC(s)"
}
]
]
}]
]
}
}</pre>
<p>If I execute Results.Segments.Baggage, nothing is output to the console, please tell me how to get the baggage information from this nested JSON. </p>
According to your JSON, there is a double array in both Results and Segments.
Response.Results[0][0].Segments[0][0].Baggage