I need to Remove object in response payload if condition is true.

I have a response body coming in , it has one array with 200 json objects in it.

I need to filter the objects like "job_status" != "true", remove the object and send the rest back to the consumer.

0 1 594
1 REPLY 1

It sounds like you'll want a JS Callout https://docs.apigee.com/api-platform/reference/policies/javascript-policy?hl=en to filter the entries and update the response using the context.proxyResponse.content object: https://docs.apigee.com/api-platform/reference/javascript-object-model#contextobjectreference