Describe the problem/error/question
i’m wondering if there is a spesial syntax for HTTP request tool for the AI Agent node with an Optimized Response option for selecting only specific fields of objects that are in a list.
What is the error message (if any)?
no errors
Please share your workflow
Share the output returned by the last node
it works well with objects themselves and fields of one specific object but not if these objects are in a list.
let’s say I have the following JSON response
{
"list_of_obj": [
{"obj":{"p1":"v1","p2":"v2"}},
{"obj":{"p1":"v1","p2":"v2"}},
{"obj":{"p1":"v1","p2":"v2"}}
],
"placeholder": {"random_int":{random_int}}
}
and i want to keep only the p1 field for every obj in list_of_obj
{
"list_of_obj": [
{"obj":{"p1":"v1"}},
{"obj":{"p1":"v1"}},
{"obj":{"p1":"v1"}}
]
}
is there a way i can do so?
i’ve tried to do it different ways but only discovered it works like this list_of_obj[0].obj.p1
but it means i need to hardcode the number of the object i expect and this is not good because the number can varray ![]()
Information on your n8n setup
- n8n version: 1.85.4



