Skip to content

Instantly share code, notes, and snippets.

@thushw
Created June 4, 2018 06:07
Show Gist options
  • Save thushw/407303dd34bca921132a70eb5bb45ca3 to your computer and use it in GitHub Desktop.
Save thushw/407303dd34bca921132a70eb5bb45ca3 to your computer and use it in GitHub Desktop.
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