Trait

unicorn.json

BaseJsonSerializer

Related Doc: package json

Permalink

trait BaseJsonSerializer extends JsonSerializer

Json serializer helper functions.

Linear Supertypes
JsonSerializer, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseJsonSerializer
  2. JsonSerializer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val charset: Charset

    Permalink

    string encoder/decoder

    string encoder/decoder

    Definition Classes
    JsonSerializer
  2. abstract def deserialize(values: Map[String, Array[Byte]], rootJsonPath: String = root): JsValue

    Permalink

    Deserialize a JSON value from the given root JSONPath.

    Deserialize a JSON value from the given root JSONPath.

    Definition Classes
    JsonSerializer
  3. abstract val pathDelimiter: String

    Permalink

    The delimiter in the path to an embedded object or in an array.

    The delimiter in the path to an embedded object or in an array. In general, we follow the dot notation as in MongoDB (even for array elements).

    Definition Classes
    JsonSerializer
  4. abstract val root: String

    Permalink

    The path to the root of a JsValue.

    The path to the root of a JsValue.

    Definition Classes
    JsonSerializer
  5. abstract def serialize(value: JsValue, rootJsonPath: String = root): Map[String, Array[Byte]]

    Permalink

    Serializes a JSON value to a list of key/value pairs, where key is the JSONPath of element.

    Serializes a JSON value to a list of key/value pairs, where key is the JSONPath of element.

    Definition Classes
    JsonSerializer

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val BINARY_SUBTYPE_BINARY_OLD: Byte

    Permalink
  5. val BINARY_SUBTYPE_FUNCTION: Byte

    Permalink
  6. val BINARY_SUBTYPE_GENERIC: Byte

    Permalink

    Binary subtypes

  7. val BINARY_SUBTYPE_MD5: Byte

    Permalink
  8. val BINARY_SUBTYPE_USER_DEFINED: Byte

    Permalink
  9. val BINARY_SUBTYPE_UUID: Byte

    Permalink
  10. val BINARY_SUBTYPE_UUID_OLD: Byte

    Permalink
  11. val END_OF_DOCUMENT: Byte

    Permalink

    End of document

  12. val END_OF_STRING: Byte

    Permalink

    End of string

  13. val FALSE: Byte

    Permalink
  14. val TRUE: Byte

    Permalink
  15. val TYPE_ARRAY: Byte

    Permalink
  16. val TYPE_BINARY: Byte

    Permalink
  17. val TYPE_BOOLEAN: Byte

    Permalink
  18. val TYPE_DATETIME: Byte

    Permalink
  19. val TYPE_DBPOINTER: Byte

    Permalink
  20. val TYPE_DOCUMENT: Byte

    Permalink
  21. val TYPE_DOUBLE: Byte

    Permalink

    Type markers

  22. val TYPE_INT32: Byte

    Permalink
  23. val TYPE_INT64: Byte

    Permalink
  24. val TYPE_JAVASCRIPT: Byte

    Permalink
  25. val TYPE_JAVASCRIPT_WITH_SCOPE: Byte

    Permalink
  26. val TYPE_MAXKEY: Byte

    Permalink
  27. val TYPE_MINKEY: Byte

    Permalink
  28. val TYPE_NULL: Byte

    Permalink
  29. val TYPE_OBJECTID: Byte

    Permalink
  30. val TYPE_REGEX: Byte

    Permalink
  31. val TYPE_STRING: Byte

    Permalink
  32. val TYPE_SYMBOL: Byte

    Permalink
  33. val TYPE_TIMESTAMP: Byte

    Permalink
  34. val TYPE_UNDEFINED: Byte

    Permalink
  35. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  36. def binary(buffer: ByteBuffer): JsValue

    Permalink
  37. def boolean(buffer: ByteBuffer): JsBoolean

    Permalink
  38. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def cstring(buffer: ByteBuffer): String

    Permalink
  40. def date(buffer: ByteBuffer): JsDate

    Permalink
  41. def double(buffer: ByteBuffer): JsDouble

    Permalink
  42. def ename(buffer: ByteBuffer): String

    Permalink
  43. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  44. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  45. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  46. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  47. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  48. def int(buffer: ByteBuffer): JsInt

    Permalink
  49. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  50. def long(buffer: ByteBuffer): JsLong

    Permalink
  51. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  52. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  53. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  54. val null: Array[Byte]

    Permalink

    Byte array of null.

    Byte array of null.

    Definition Classes
    BaseJsonSerializerJsonSerializer
  55. def objectId(buffer: ByteBuffer): JsValue

    Permalink
  56. def serialize(buffer: ByteBuffer, json: JsBinary, ename: Option[String]): Unit

    Permalink
  57. def serialize(buffer: ByteBuffer, json: JsUUID, ename: Option[String]): Unit

    Permalink
  58. def serialize(buffer: ByteBuffer, json: JsObjectId, ename: Option[String]): Unit

    Permalink
  59. def serialize(buffer: ByteBuffer, json: JsDate, ename: Option[String]): Unit

    Permalink
  60. def serialize(buffer: ByteBuffer, json: JsString, ename: Option[String]): Unit

    Permalink
  61. def serialize(buffer: ByteBuffer, json: JsDouble, ename: Option[String]): Unit

    Permalink
  62. def serialize(buffer: ByteBuffer, json: JsLong, ename: Option[String]): Unit

    Permalink
  63. def serialize(buffer: ByteBuffer, json: JsInt, ename: Option[String]): Unit

    Permalink
  64. def serialize(buffer: ByteBuffer, json: JsBoolean, ename: Option[String]): Unit

    Permalink
  65. def serialize(buffer: ByteBuffer, string: String): Unit

    Permalink
  66. def serialize(buffer: ByteBuffer, string: Option[String]): Unit

    Permalink
  67. def str2Bytes(s: String): Array[Byte]

    Permalink

    Serialize a string to bytes.

    Serialize a string to bytes.

    Definition Classes
    JsonSerializer
  68. def str2Path(path: String): String

    Permalink

    Returns the json path of a dot notation path as in MongoDB.

    Returns the json path of a dot notation path as in MongoDB.

    Definition Classes
    JsonSerializer
  69. def str2PathBytes(path: String): Array[Byte]

    Permalink

    Returns the byte array of json path

    Returns the byte array of json path

    Definition Classes
    JsonSerializer
  70. def string(buffer: ByteBuffer): JsString

    Permalink
  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  72. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  73. val undefined: Array[Byte]

    Permalink

    Encoding of "undefined"

    Encoding of "undefined"

    Definition Classes
    BaseJsonSerializerJsonSerializer
  74. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsonSerializer

Inherited from AnyRef

Inherited from Any

Ungrouped