object Json
- Alphabetic
- By Inheritance
- Json
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val EmptyObjectBlob: Blob
- val NullBlob: Blob
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- implicit def deriveJsonCodec[A](implicit arg0: schema.Schema[A]): JsonCodec[A]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val jsoniter: JsoniterCodecCompiler
Default jsoniter codec compiler, which can produce instances of com.github.plokhotnyuk.jsoniter_scala.core.JsonCodec from instances of smithy4s.schema.Schema (which are generated for all smithy data types)
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val payloadCodecs: JsonPayloadCodecCompiler
Default payload codec compiler, which can produce instances of smithy4s.codecs.PayloadDecoder / smithy4s.codecs.PayloadEncoder from instances of smithy4s.schema.Schema (which are generated for all smithy data types).
Default payload codec compiler, which can produce instances of smithy4s.codecs.PayloadDecoder / smithy4s.codecs.PayloadEncoder from instances of smithy4s.schema.Schema (which are generated for all smithy data types). These can be used, for instance, in HTTP interpreters.
- def read[A](blob: Blob)(implicit arg0: schema.Schema[A]): Either[PayloadError, A]
Reads an instance of
Afrom a smithy4s.Blob holding a json payload.Reads an instance of
Afrom a smithy4s.Blob holding a json payload.Beware : using this method with a non-static schema (for instance, dynamically generated) may result in memory leaks.
- def readDocument(bytes: Array[Byte]): Either[PayloadError, Document]
Parses a smithy4s.Document from an scala.Array of scala.Byte containing a Json payload.
- def readDocument(string: String): Either[PayloadError, Document]
Parses a smithy4s.Document from a String containing a Json payload.
- def readDocument(blob: Blob): Either[PayloadError, Document]
Parses a smithy4s.Document from a smithy4s.Blob containing a Json payload.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def writeBlob[A](a: A)(implicit arg0: schema.Schema[A]): Blob
Writes the json representation for an instance of
Ainto a smithy4s.Blob.Writes the json representation for an instance of
Ainto a smithy4s.Blob.Beware : using this method with a non-static schema (for instance, dynamically generated) may result in memory leaks.
When writing interpreters, please prefer using the payloadCodecs object.
- def writeDocumentAsBlob(document: Document): Blob
Writes a smithy4s.Document into a binary smithy4s.Blob.
- def writeDocumentAsPrettyString(document: Document): String
Writes a smithy4s.Document into a pretty string with a 2-spaces indentation
- def writePrettyString[A](a: A)(implicit arg0: schema.Schema[A]): String
Writes the json representation for an instance of
Ainto a 2-spaces-indented string.Writes the json representation for an instance of
Ainto a 2-spaces-indented string.Beware : using this method with a non-static schema (for instance, dynamically generated) may result in memory leaks.
When writing interpreters, please prefer using the payloadCodecs object.