Skip to content

Instantly share code, notes, and snippets.

@JosephMoniz
Last active August 29, 2015 14:20
Show Gist options
  • Save JosephMoniz/da9db4ef15d170e3e723 to your computer and use it in GitHub Desktop.
Save JosephMoniz/da9db4ef15d170e3e723 to your computer and use it in GitHub Desktop.
An example on how to convert json to objects.
val nativeList = JsArray(JsInt(1), JsInt(2), JsInt(3)).as[List[Int]]
val failedConversion = JsArray(JsString("not"), JsString("ints")).as[List[Int]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment