Skip to content

Setting options for json encode/decode in Serializer #14431

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

Merged

Conversation

dbrumann
Copy link
Contributor

Adds a paragraph on how to set options for json_encode/json_decode in Serializer JsonEncoder by passing them as part of the context array.

@javiereguiluz
Copy link
Member

You are right; it's much easier to understand with a real example. Thanks!

@javiereguiluz javiereguiluz merged commit 501f388 into symfony:4.4 Oct 17, 2020
@dbrumann dbrumann deleted the improvement/serializer_json_context branch October 17, 2020 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants