Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 230 Bytes
package com.example
import spray.json.DefaultJsonProtocol._
import spray.json.RootJsonFormat
case class User(name: String, age: Int)
object User {
implicit def userJsonFormat: RootJsonFormat[User] = jsonFormat2(User.apply)
}