我的 JSON 对象如下所示:
{
"destination_addresses" : [ "Paris, France" ],
"origin_addresses" : [ "Amsterdam, Nederland" ],
"rows" : [
{
"elements" : [
{
"distance" : {
"text" : "504 km",
"value" : 504203
},
"duration" : {
"text" : "4 uur 54 min.",
"value" : 17638
},
"status" : "OK"
}
]
}
],
"status" : "OK"
}
我需要距离的“504 公里”值。我怎样才能做到这一点?