Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to pass json encoding options. #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Ability to pass json encoding options. #302

wants to merge 1 commit into from

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