object JsonCodec
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JsonCodec
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
final
case class
DecodingFailed[A](reason: slamdata.Predef.String, value: A) extends Product with Serializable
Error describing why decoding the given value failed.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): scala.Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val ByteK: slamdata.Predef.String
- val CharK: slamdata.Predef.String
- val ExtKeys: ISet[slamdata.Predef.String]
- val IntK: slamdata.Predef.String
- val KeyK: slamdata.Predef.String
- val MapK: slamdata.Predef.String
- val MetaK: slamdata.Predef.String
-
val
Sigil: scala.Char
Constants used in the Json encoding.
- val ValueK: slamdata.Predef.String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
decodeƒ[J](implicit JC: Aux[J, Json], JR: Aux[J, Json]): Coalgebra[[γ$0$]CoEnv[DecodingFailed[J], [A]Coproduct[Extension, Common, A], γ$0$], J]
Attempt to decode an EJson value from Json.
-
def
encodeƒ[J](implicit JC: Aux[J, Json], JR: Aux[J, Json]): Algebra[EJson, J]
Encode an EJson value as Json.
Encode an EJson value as Json.
In order to remain compatible with JSON and achieve a compact encoding the following scheme is used:
1. All JSON compatible values are encoded verbatim.
2. Extended values are encoded as
Meta -> { ∃value: ..., ∃meta: ...} Map -> { ∃map: [{∃key: ..., ∃value: ...}, ...] } Byte -> { ∃byte: 42 } Char -> { ∃char: "x" } Int -> { ∃int: 2345 }
3. A Map where the keys are all strings will be encoded as a Json object with encoded EJson values.
4. Any map keys in a source EJson value that begin with '∃' are prefixed with an additional '∃'.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): scala.Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
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( ... )
-
final
def
wait(arg0: Long, arg1: scala.Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )