zio.json.ast

package zio.json.ast

Members list

Type members

Classlikes

sealed abstract class Json

This AST of JSON is made available so that arbitrary JSON may be included as part of a business object, it is not used as an intermediate representation, unlike most other JSON libraries. It is not advised to .map or .mapOrFail from these decoders, since a higher performance decoder is often available.

This AST of JSON is made available so that arbitrary JSON may be included as part of a business object, it is not used as an intermediate representation, unlike most other JSON libraries. It is not advised to .map or .mapOrFail from these decoders, since a higher performance decoder is often available.

Beware of the potential for DOS attacks, since an attacker can provide much more data than is perhaps needed.

Also beware of converting Num (a BigDecimal) into any other kind of number, since many of the stdlib functions are non-total or are known DOS vectors (e.g. calling .toBigInteger on a "1e214748364" will consume an excessive amount of heap memory). JsonValue / Json / JValue

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Arr
class Bool
object Null.type
class Num
class Obj
class Str
Show all
Self type
object Json

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Json.type
sealed trait JsonCursor[-From, +To <: Json]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class DownElement
class DownField
class FilterType[A]
object Identity.type
Self type
JsonCursor[From, To]
object JsonCursor

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
JsonCursor.type
sealed trait JsonType[A]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Arr.type
object Bool.type
object Null.type
object Num.type
object Obj.type
object Str.type
Show all
object JsonType

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
JsonType.type