Add an SSR feature called renderToJSON/serialize that instead of rendering an HTML markup, renders the JSON representation of the markup.
This is a very wild idea. Obviously, the SSR formats right now only support HTML so this feature might only work if the compiler itself is compatible to the runtime. Supposedly, renderToJSONAsync and renderToJSONStream are also similar ideas that can be added.
Add an SSR feature called
renderToJSON
/serialize
that instead of rendering an HTML markup, renders the JSON representation of the markup.This is a very wild idea. Obviously, the SSR formats right now only support HTML so this feature might only work if the compiler itself is compatible to the runtime. Supposedly,
renderToJSONAsync
andrenderToJSONStream
are also similar ideas that can be added.