Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@patryk-scalac-io
Created June 15, 2017 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patryk-scalac-io/e25570f609cf26451f861136d3503b9d to your computer and use it in GitHub Desktop.
Save patryk-scalac-io/e25570f609cf26451f861136d3503b9d to your computer and use it in GitHub Desktop.
sealed trait Json
case object JNull extends Json
case class JStr(v: String) extends Json
case class JNum(v: Double) extends Json
case class JObj(v: Map[String, Json]) extends Json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment