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

Describe how to read optional fields / objects with Json Transformers #12

Open
gmethvin opened this issue Dec 12, 2016 · 0 comments
Open

Comments

@gmethvin
Copy link
Member

gmethvin commented Dec 12, 2016

(Moved from playframework/playframework#6756)

Actually reading optional fields / objects with Json Transformers is possible, but it is currently missing in our documentation, so we should add something like that to our docs: http://stackoverflow.com/a/15998881/2250209

Actually the important part is: .orElse(__.json.pick[JsObject])

@cchantep cchantep changed the title [doc] describe how to read optional fields / objects with Json Transformers Describe how to read optional fields / objects with Json Transformers Jan 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants