Hello,
I want to use builder’s content API to fetch some data, but I need to exclude a specific field from an array of objects.
Suppose that I have the following json object
{
"results": [
{
"id": "a14cda49cfa4423c90a9fbb5467d5624",
"someproperty": "some value",
"data": {
"someproperty": "some value",
"steps": [
{
"transcript": "very big text",
"useful property": "value"
},
{
"transcript": "very big text",
"useful property": "value"
},
{
"transcript": "very big text",
"useful property": "value"
},
{
"transcript": "very big text",
"useful property": "value"
}
]
}
}
]
}
How can I omit the field “transcript” from all the objects of the response?
I use the REST API explorer:
- I can exclude the property of a specific object if I specify the order. Eg. to exclude the ‘transcript’ object from the first item I can use ‘data.steps.0.transcript’.
- Using ‘data.steps.[].transcript’ or 'data.steps..transcript’ doesn’t work and it returns all the properties.
Any help?