Created
June 4, 2018 06:07
-
-
Save thushw/407303dd34bca921132a70eb5bb45ca3 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
import net.liftweb.json._ | |
case class Puzzle(created_time: String, message: String, id: String) | |
case class PuzzleData(data: List[Puzzle]) | |
implicit val formats = DefaultFormats | |
val parsed = puzzle_data.extract[PuzzleData] | |
for { | |
puzzle <- parsed.data | |
} yield println(puzzle) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment