Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

Response.sendJson

Response.sendJson($map)

Description

Stringify a Map and respond with an application/json document.

$data = {
    name: 'Thomas',
    id: 123,
};

Response.sendJson($data);