Created
June 9, 2015 14:55
-
-
Save propensive/98e6883da80d89008772 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import rapture.json._, jsonBackends.spray._ | |
import rapture.io._ | |
import rapture.fs._ | |
import rapture.uri._ | |
import rapture.codec._, encodings.`UTF-8`._ | |
val json = Json.parse(uri"file:///home/work/test.json".slurp[Char]) | |
case class AddressComponent(short_name: String, long_name: String) | |
val components = json.result.address_components.as[List[AddressComponent]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment