0
我有一個基於web服務請求的JSON響應。修改Mule中的有效載荷
[
{
"type": " --T::00"
},
{
"address": "10049 College Way N",
"longitude": "-122.335022",
"latitude": "47.701756",
"incident_number": "F110104009",
"type": "Aid Response",
"report_location": {
"needs_recoding": false,
"longitude": "-122.335022",
"latitude": "47.701756"
}
},
{
"address": "5929 Beach Dr Sw",
"longitude": "-122.397816",
"latitude": "47.550431",
"incident_number": "F110104008",
"type": "Aid Response",
"report_location": {
"needs_recoding": false,
"longitude": "-122.397816",
"latitude": "47.550431"
}
}
有沒有一種方法來操縱有效載荷從標題中刪除此{ 「類型」:「--T :: 00」 }或只是添加它在頁腳。我目前使用JSON to Object轉換器並添加了java.util.List。我見過使用Groovy轉換器來添加消息的帖子,但如何刪除頭像等元素?
謝謝!