Read Content of a file which is in response

I have created an API Proxy. This proxy fetched the content of the json file from source system.

When I test this proxy in POSTMAN I get json file content in the POSTMAN console. However, When we call this proxy via web browser gives option to download the json file itself.

My question can we intercept this json file data in apigee 

I read some other threads and solution is to write a Javascript. I just wrote simple javascript to capture the content as below but I am able to get the file content. Please note the extension of the file is .dat but the data in the file is json.

context.setVariable('resp_payload1', JSON.stringify(response));
context.setVariable('resp_payload2', JSON.stringify(response.content));

0 1 120
1 REPLY 1

can we intercept this json file data in apigee

Yes, the API proxy can access the response content.

What do you want to do with it? You said "intercept". OK, Apigee can do that. Then what? Do you want the API proxy to modify the response? Suppress the response? calculate a SHA256 checksum on the response? extract some of the fields from it? What's the goal?