Re:Browsers, JSON, and FormData
by artificialLimbs on Sunday November 13, 2022 @02:11PM
(#33586303)
You can't return JSON to the browser. (I mean you can, but why lol?)
You have to interpret both up and down stream with a JSON parser (usually JS).
In contrast, you can return hypertext/hypermedia directly to the browser and the user can interact with it immediately, without needing translation layers.
You have to interpret both up and down stream with a JSON parser (usually JS). In contrast, you can return hypertext/hypermedia directly to the browser and the user can interact with it immediately, without needing translation layers.
A primer: https://dev.to/rajasegar/html-over-the-wire-is-the-future-of...