_json

Header sent as text/json

Parameters
array|object $data = []

Array/Object of data to be encoded as JSON

#
int $status = 200

HTTP status code, default to 200

#
bool $return = false

Return json data or not

#
Returns
false|string|void