Guides › Response › JSON ← PREV NEXT →
Return an object or array to send JSON.
module.exports = {
paths: '/status',
handler: function (state) {
return { ok: true, version: '1.0.0' }
}
}
The server sends application/json; charset=utf-8. Use JARPC to include a POST request's ID.
Next: Status codes →