我有这样的 JSON 结果
{
"responseHeader": {
"status": 0,
"QTime": 1,
"params": {
"q": "zip:15241",
"wt": "json",
"fq": "propertyType:AUCTION"
}
},
"response": {
"numFound": 2,
"start": 0,
"docs": [{
"streetAddress": "1014 TALL TREES DR",
"estimate": 506672.0,
"city": "PITTSBURGH",
"beds": 4.0,
"baths": 3.5,
"propertyType": "AUCTION",
"status": "OPEN",
"propertyId": 778526,
"amountField": "OB",
"amount": "88888.0",
"enteredDate": 20101221,
"bed_bath": "4B 3.50BT",
"hasPhoto": false,
"auctionDate": "2012-08-07T18:30:00Z",
"displayAddress": "TALL TREES DR",
"zip": "15241",
"residenceType": "SFR",
"sqFeet": 3275.0,
"fcStatusName": "NTS",
"county": "Allegheny",
"state": "PA",
"_version_": 1429451140939907072
}, {
"streetAddress": "2567 ROSSMOOR DR",
"estimate": 503195.0,
"city": "PITTSBURGH",
"beds": 6.0,
"baths": 2.0,
"propertyType": "AUCTION",
"status": "OPEN",
"propertyId": 1662435,
"amountField": "MV",
"amount": "503195.0",
"enteredDate": 20101221,
"bed_bath": "6B 2BT",
"hasPhoto": false,
"auctionDate": "2010-12-24T18:30:00Z",
"displayAddress": "ROSSMOOR DR",
"zip": "15241",
"residenceType": "SFR",
"sqFeet": 6143.0,
"fcStatusName": "NTS",
"county": "Allegheny",
"state": "PA",
"_version_": 1429451149353680896
}]
}
}
我想得到一个对象列表,每个对象都将包含 streetAddress、estimate、city 等的值...
那么如何通过名称访问这些元素呢?