Open mario-deluna opened 9 years ago
Added an optional argument to the Response->json method that allows passing of encoding options like JSON_PRETTY_PRINT.
I hope this is not a duplicate. But i thought it could be handy to be able to pass encoding options to the json response method.
Example:
$response->json($data, null, JSON_PRETTY_PRINT);
Added an optional argument to the Response->json method that allows passing of encoding options like JSON_PRETTY_PRINT.
I hope this is not a duplicate. But i thought it could be handy to be able to pass encoding options to the json response method.
Example: