liewhite.json

package liewhite.json

Members list

Type members

Classlikes

case class A[T](a: Int, b: String, c: Option[T])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum Constant

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum E

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class X(m: Map[String, String])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Y()

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final class main

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def main: Unit

Concrete fields

val dynamicSchema: Schema[DynamicValue]

if (directMapping) { Json.decoder.map(jsonToDynamicValue) } else { schemaDecoder(DynamicValue.schema) }

if (directMapping) { Json.decoder.map(jsonToDynamicValue) } else { schemaDecoder(DynamicValue.schema) }

Attributes

Givens

Givens

given given_Schema_Json: Schema[Json]
given given_Schema_Seq[T](using l: Schema[List[T]]): Schema[Seq[T]]

Extensions

Extensions

extension (j: Json)
def asType[T](using s: Schema[T]): Either[String, T]
extension [T](s: T)
def toJson: Chunk[Byte]
extension (s: String)
def fromJson[T](using schema: Schema[T]): Either[DecodeError, T]
extension (s: Array[Byte])
def fromJson[T](using schema: Schema[T]): Either[DecodeError, T]
extension (s: CharSequence)
def fromJson[T](using schema: Schema[T]): Either[DecodeError, T]
extension (s: Chunk[Byte])
def fromJson[T](using schema: Schema[T]): Either[DecodeError, T]

Exports

Defined exports

final val Json: Json.type
Exported from ast
final type Json = Json
Exported from ast
final val Schema: Schema.type
Exported from schema
final type Schema = Schema
Exported from schema