Packages

  • package root
    Definition Classes
    root
  • package eu
    Definition Classes
    root
  • package shiftforward
    Definition Classes
    eu
  • package apso

    Contains ShiftForward's general-purpose utility classes and methods, as well as extensions of existing ones.

    Contains ShiftForward's general-purpose utility classes and methods, as well as extensions of existing ones.

    Definition Classes
    shiftforward
  • package json

    Provides utility classes and methods related to JSON handling.

    Provides utility classes and methods related to JSON handling.

    Definition Classes
    apso
  • object Implicits

    Object containing implicit classes and methods related to JSON handling.

    Object containing implicit classes and methods related to JSON handling.

    Definition Classes
    json
  • ApsoJsonJsObject
  • ApsoJsonJsValue
  • ApsoJsonObject
  • ToInt

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)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def deleteField(fieldPath: String, separator: Char = '.'): Json

    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]

    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]
    Definition Classes
    AnyVal → Any
  8. def getCursor(fieldPath: String, separator: Char): ACursor

    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]

    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
    Definition Classes
    Any
  11. val json: Json
  12. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped