Return JSON

Serialize an object and return it as a JSON response with the correct content-type header, for lightweight APIs and middleware.

Last updated

View as Markdown Agent setup