get Response of a Large JSON file using Rest

Manoj Kumar16
Giga Guru

I have an endpoint which has a large JSON file probably 16 mb file. when I am using get function to get the response in chrome the browser keeps on running and HTTP status is given as - 0. The request gets timed out.

When I run the endpoint as a url in internet Explorer there is a pop up given to save the file and when I open the JSON file through a notepad then I can see the response.

Could you please suggest how can I can the response using REST in Service-now itself.

Any help on this is highly appreciated . Thank You

2 REPLIES 2

Deepak Ingale1
Mega Sage

Hi Manoj,



I guess ServiceNow limit of payload is around 30 to 35 MB.


you can confirm this with HI support team.



I guess looks like you are making a SYNC call to end point, try with ASYNC so that your browser does not gets freezed.


tbalestreri3
Mega Contributor

Hey Manoj,



I am sure you have figure this out already however you will need to increase the attachment file size property for ServiceNow as well as the max_payload size on your MID Server.



If you figured this part out already and are on to the next steps. I would like to ask how big is your file and how long does it take you to parse it?