WithOptions

final class WithOptions[Opts <: MacroOptions](val config: Aux[Opts]) extends JsonFacade with JsMacrosWithOptions

JSON facade with some macro options.

Type Params
Opts

the compile-time options

class Object
trait Matchable
class Any

Value members

Constructors

def this()

Concrete methods

@inline
def arr(items: JsValueWrapper*): JsArray
@inline
def asciiStringify(json: JsValue): String
@inline
def fromJson[T](json: JsValue)(implicit fjs: Reads[T]): JsResult[T]
@inline
def obj(fields: (String, JsValueWrapper)*): JsObject
@inline
def parse(input: String): JsValue
@inline
def parse(input: InputStream): JsValue
@inline
def parse(input: Array[Byte]): JsValue
@inline
def prettyPrint(json: JsValue): String
@inline
def stringify(json: JsValue): String
@inline
def toBytes(json: JsValue): Array[Byte]
@inline
def toJsObject[T](o: T)(implicit tjs: OWrites[T]): JsObject
@inline
def toJson[T](o: T)(implicit tjs: Writes[T]): JsValue

Inherited methods

inline def format[A](implicit evidence$3: Of[A]): OFormat[A]
Inherited from
JsMacrosWithOptions
inline def reads[A](implicit evidence$1: Of[A]): Reads[A]
Inherited from
JsMacrosWithOptions
inline def writes[A](implicit evidence$2: Of[A]): OWrites[A]
Inherited from
JsMacrosWithOptions

Concrete fields

val config: Aux[Opts]