Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jboner/157154 to your computer and use it in GitHub Desktop.
Save jboner/157154 to your computer and use it in GitHub Desktop.
Akka Serializable
case class MyMessage(val id: String, val value: Tuple2[String, Int]) extends ScalaJSON
val message = MyMessage("id", ("hello", 34))
val json = message.toJSON
val messageCopy = Serializer.ScalaJSON.in(json)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment