Created
April 14, 2018 10:04
-
-
Save anuragsrivastava06/5fbd1ff38b9b004711fd49f8fc0439e9 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
sealed trait Json | |
final case class JsObject(get: Map[String, Json]) extends Json | |
final case class JsString(get: String) extends Json | |
final case class JsNumber(get: Double) extends Json | |
case object JsNull extends Json | |
trait JsonWriter[A] { | |
def write(value: A): Json | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment