Open pspraveenkr opened 2 years ago
Response isn’t a thing in the language - it’d be the job of, in this case, HTML to add support for it.
I will open an issue at https://github.com/whatwg/fetch which looks like the right spot for this question.
Thanks!
In many cases, JSON parsing happens indirectly when an application calls
Response.json()
function after fetching JSON payload from a service using the Fetch API.Would it be within the scope of this proposal to enhance
Response.json()
to add support forreviver
option? Or, is the recommendation to useResponse.text()
and then callJSON.parse
directly with a reviver function?Thank you for advancing this proposal! We at Esri are tracking this proposal as part of adding support for big integers to our ArcGIS Online Cloud platform. Not being able to serialize and de-serialize is a blocker at the moment.