What’s the point of the json() function? #9468
sinclairnick
started this conversation in
General
Replies: 1 comment 1 reply
-
When it was implemented Response.json was not a thing, and now it returns a TypedResponse to get type inference working Also it will be deprecated with Single Fetch feature where it's not needed anymore. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure what the point of the json() function is?
The Web Standards already provide the Response.json function which seemingly does the same thing.
Perhaps it's doing other stuff under the hood?
Beta Was this translation helpful? Give feedback.
All reactions