Created
May 28, 2015 06:05
-
-
Save pjazdzewski1990/576892c5fc8765a304ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parseAsValueOrException(s: String) = { | |
import modes.throwExceptions._ | |
Json.parse(s) | |
} | |
def parseAsEither(s: String) = { | |
import modes.returnEither._ | |
Json.parse(s) | |
} | |
def parseAsOption(s: String) = { | |
import modes.returnOption._ | |
Json.parse(s) | |
} | |
def parseAsTry(s: String) = { | |
import modes.returnTry._ | |
Json.parse(s) | |
} | |
def parseAsFuture(s: String) = { | |
import modes.returnFuture._ | |
Json.parse(s) | |
} | |
def parseAsJava(s: String) = { | |
import modes.keepCalmAndCarryOn._ | |
Json.parse(s) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment