Class

eu.shiftforward.apso.json.Implicits

ApsoJsonObject

Related Doc: package Implicits

Permalink

implicit final class ApsoJsonObject extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ApsoJsonObject
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ApsoJsonObject(json: Json)

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def deleteField(fieldPath: String, separator: Char = '.'): Json

    Permalink

    Delete a field on a json object.

    Delete a field on a json object.

    Eg. {"a":1,"b":{"c":2},"d":null}.deleteField("b.c") = {"a":1,"b":{},"d":null}

    fieldPath

    path from the root of the json object to the field

    separator

    character that separates each element of the path

    returns

    the json without the deleted value

  6. def flattenedKeySet(separator: String = ".", ignoreNull: Boolean = true): Set[String]

    Permalink

    Returns a set of keys of this object where nested keys are separated by a separator character.

    Returns a set of keys of this object where nested keys are separated by a separator character.

    Eg. {"a":1,"b":{"c":2},"d":null}.flattenedKeySet(".", ignoreNull = true) = Set("a","b.c")

    separator

    character separator to use

    ignoreNull

    if set, fields with a null value are ignored

    returns

    flattened key set

  7. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  8. def getCursor(fieldPath: String, separator: Char): ACursor

    Permalink

    Returns a cursor on the field on the end of the tree, separated by the separator character.

    Returns a cursor on the field on the end of the tree, separated by the separator character.

    fieldPath

    path from the root of the json object to the field

    separator

    character that separates each element of the path

    returns

    cursor to the field value

  9. def getField[A](fieldPath: String, separator: Char = '.')(implicit arg0: Decoder[A]): Option[A]

    Permalink

    Returns the value of the field on the end of the tree, separated by the separator character.

    Returns the value of the field on the end of the tree, separated by the separator character.

    Eg. {"a":{"b":1}}.getField("a.b") = 1

    A

    type of the field value

    fieldPath

    path from the root of the json object to the field

    separator

    character that separates each element of the path

    returns

    an option with the field value

  10. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  11. val json: Json

    Permalink
  12. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped