response::json
Converts an array to json and returns it properly
response::json($data, $code = 200)
Parameters
$data (array)
Return values
object