Skip to content

Conversation

@mario-deluna
Copy link

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.
@mario-deluna mario-deluna changed the title Added ability to pass json encoding options. Ability to pass json encoding options. Sep 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant