A JSON Response (application/json; charset=utf-8).
Response
application/json; charset=utf-8
An Envelope or any JSON-serializable value.
HTTP status. Default 200.
Optional
Extra headers; they can override Content-Type.
Content-Type
The response.
return jsonResponse(await new Fragment('feed/card.html', 'feed', { title: 'Card' }).run(engine)); Copy
return jsonResponse(await new Fragment('feed/card.html', 'feed', { title: 'Card' }).run(engine));
A JSON
Response(application/json; charset=utf-8).