com.rojoma.json.v3.util.AutomaticJsonCodecBuilder.scala Maven / Gradle / Ivy
The newest version!
package com.rojoma.json.v3
package util
import scala.language.experimental.macros
import `-impl`.util.{AutomaticJsonCodecBuilderImpl, JObjectEncode}
import codec._
object AutomaticJsonCodecBuilder {
def apply[T]: JsonEncode[T] with JsonDecode[T] with JObjectEncode[T] = macro AutomaticJsonCodecBuilderImpl.codec[T]
}
object AutomaticJsonEncodeBuilder {
def apply[T]: JsonEncode[T] with JObjectEncode[T] = macro AutomaticJsonCodecBuilderImpl.encode[T]
}
object AutomaticJsonDecodeBuilder {
def apply[T]: JsonDecode[T] = macro AutomaticJsonCodecBuilderImpl.decode[T]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy