Web サービス要求に基づく JSON 応答があります。
[
{
"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"
}
}
ペイロードを操作してこれをヘッダー { "type": " --T::00" } から削除するか、単にフッターに追加する方法はありますか? 現在、JSON to Object トランスフォーマーを使用し、java.util.List を追加しました。Groovy トランスフォーマーを使用してメッセージに追加する投稿を見たことがありますが、ヘッダーなどの要素を削除するのはどうですか?
ありがとう!