Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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