Response.json Example

This val produces the JSON { ok: true } at the URL: https://tmcw-jsonokexample.web.val.run/

Readme
1
export const jsonOkExample = () => Response.json({ ok: true });
Only the latest version can be previewed
👆 This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.