zio.blocks.schema.json.JsonType
See theJsonType companion object
A sealed trait representing the type of a JSON value.
This is used by MergeStrategy to make decisions about recursion without needing access to the actual JSON values.
Each case provides two type members:
Type: The corresponding Json subtype (e.g., Json.Object)
Unwrap: The underlying Scala type of the value (e.g., Chunk[(String, Json)])
Attributes
- Companion
-
object
- Source
-
JsonType.scala
- Graph
-
- Supertypes
-
trait Matchable
class Any
- Known subtypes
-
Members list
The corresponding Json subtype for this JSON type.
The underlying Scala type of the value contained in this JSON type.
The underlying Scala type of the value contained in this JSON type.
Attributes
- Source
-
JsonType.scala
Returns the type index for ordering: Null=0, Boolean=1, Number=2, String=3, Array=4, Object=5
Returns the type index for ordering: Null=0, Boolean=1, Number=2, String=3, Array=4, Object=5
Attributes
- Source
-
JsonType.scala
Returns true if the given JSON value is of this type.
Returns true if the given JSON value is of this type.
Attributes
- Definition Classes
-
Function1
- Source
-
JsonType.scala
Composes two instances of Function1 in a new Function1, with this function applied first.
Composes two instances of Function1 in a new Function1, with this function applied first.
Type parameters
- A
-
the result type of function g
Value parameters
- g
-
a function R => A
Attributes
- Returns
-
a new function f such that f(x) == g(apply(x))
- Inherited from:
-
Function1
- Source
-
Function1.scala
Composes two instances of Function1 in a new Function1, with this function applied last.
Composes two instances of Function1 in a new Function1, with this function applied last.
Type parameters
- A
-
the type to which function g can be applied
Value parameters
- g
-
a function A => T1
Attributes
- Returns
-
a new function f such that f(x) == apply(g(x))
- Inherited from:
-
Function1
- Source
-
Function1.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Function1 -> Any
- Inherited from:
-
Function1
- Source
-
Function1.scala