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

add convertToOption to jsValue #126

Open
tmnd1991 opened this issue Nov 27, 2014 · 0 comments
Open

add convertToOption to jsValue #126

tmnd1991 opened this issue Nov 27, 2014 · 0 comments

Comments

@tmnd1991
Copy link

Why not adding a convertToOption[](or tryConvertTo[]) and a parseJsonOption, that doesn't throws a Exception (we all hate avoidable exceptions) but just returns None if the json string cannot be parsed or the jsValue cannot be converted?
I simply coded them in this gist (https://gist.github.com/tmnd1991/c740d2893d08dcf30110)
but it's not efficient at all ;\

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

No branches or pull requests

1 participant