![JAR search and dependency download from the Maven repository](/logo.png)
sjson.json.Protocol.scala Maven / Gradle / Ivy
package sjson
package json
import dispatch.json._
trait Writes[T] {
def writes(o: T): JsValue
}
trait Reads[T] {
def reads(json: JsValue): T
}
trait Format[T] extends Writes[T] with Reads[T]
trait Protocol {
implicit val IntFormat: Format[Int]
implicit val ShortFormat: Format[Short]
implicit val LongFormat: Format[Long]
implicit val BooleanFormat: Format[Boolean]
implicit val FloatFormat: Format[Float]
implicit val DoubleFormat: Format[Double]
implicit val StringFormat: Format[String]
}
trait DefaultProtocol extends CollectionTypes with Generic with Primitives
object DefaultProtocol extends DefaultProtocol
© 2015 - 2025 Weber Informatics LLC | Privacy Policy