0
我在主類中有objectList。我正在使用Jackson的SimpleBeanPropertyFilter.filterOutAllExcept,但我沒有得到過濾的響應。任何人都可以幫助我,JSON響應如下。Filter使用Jackson's BeanPropertyFilter的對象列表
{
"person": [
{
"firstName": "Shyam",
"age": 7,
"addressDetails": [
{
"houseNo": "1236",
"buildingNo": "T4",
"address1": "sector 34",
"address2": "near hospital",
"city": "noida",
"state": "UP",
"pinCode": 1400021
},
{
"houseNo": "1236",
"buildingNo": "T4",
"address1": "sector 34",
"address2": "near hospital",
"city": "noida",
"state": "UP",
"pinCode": 1400021
}
],
"lastName": "singh"
}
],
"syncDate": 1441167154507,
"nextPage": "http://localhost:8080/personData/Date=1437458428657"
}
什麼是您的過濾器的代碼是什麼樣子? – usandfriends