All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dslplatform.json.json.scala Maven / Gradle / Ivy

The newest version!
package com.dslplatform

import scala.reflect.runtime.universe._

package object json {

  implicit def prepareDecoder[T: TypeTag](implicit json: DslJson[_]): JsonReader.ReadObject[T] = {
    val pimp = new DslJsonScala(json)
    pimp.decoder[T]
  }

  implicit def prepareEncoder[T: TypeTag](implicit json: DslJson[_]): JsonWriter.WriteObject[T] = {
    val pimp = new DslJsonScala(json)
    pimp.encoder[T]
  }

  implicit def dslJsonToScala(json: DslJson[_]): DslJsonScala = new DslJsonScala(json)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy