Packages

sealed trait Null extends Json

Source
Json.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Null
  2. Json
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type Type
    Definition Classes
    Json

Abstract Value Members

  1. abstract def genKey(b: StringBuilder): Unit

    Generates a consistent key from this JSON.

    Generates a consistent key from this JSON. This can be useful for comparison or unique reference.

    Definition Classes
    Json
  2. abstract def isEmpty: Boolean
    Definition Classes
    Json
  3. abstract def type: JsonType[Type]

    The type of value

    The type of value

    Definition Classes
    Json

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def apply(path: JsonPath): Json

    Looks up a Json based on Path

    Looks up a Json based on Path

    Example: val v = someValue("first" \ "second" \ "third")

    Definition Classes
    Json
  5. final def apply(lookup: String): Json

    Looks up a Json by name in the children.

    Looks up a Json by name in the children.

    Throws an exception if invoked on anything except Obj

    Definition Classes
    Json
  6. def asArr: Arr

    Casts to Arr or throws an exception if not an Arr

    Casts to Arr or throws an exception if not an Arr

    Definition Classes
    Json
  7. def asBigDecimal: BigDecimal

    Convenience method for asNum.value

    Convenience method for asNum.value

    Definition Classes
    Json
  8. def asBool: Bool

    Casts to Bool or throws an exception if not a Bool

    Casts to Bool or throws an exception if not a Bool

    Definition Classes
    Json
  9. def asBoolean: Boolean

    Convenience method for asBool.value

    Convenience method for asBool.value

    Definition Classes
    Json
  10. def asByte: Byte
    Definition Classes
    Json
  11. def asDouble: Double
    Definition Classes
    Json
  12. def asFloat: Float
    Definition Classes
    Json
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def asInt: Int
    Definition Classes
    Json
  15. def asLong: Long
    Definition Classes
    Json
  16. def asMap: Map[String, Json]

    Convenience method for asObj.value

    Convenience method for asObj.value

    Definition Classes
    Json
  17. def asNum: Num

    Casts to Num or throws an exception if not a Num

    Casts to Num or throws an exception if not a Num

    Definition Classes
    Json
  18. def asNumDec: NumDec

    Casts to NumDec or throws an exception if not a NumDec

    Casts to NumDec or throws an exception if not a NumDec

    Definition Classes
    Json
  19. def asNumInt: NumInt

    Casts to NumInt or throws an exception if not a NumInt

    Casts to NumInt or throws an exception if not a NumInt

    Definition Classes
    Json
  20. def asObj: Obj

    Casts to Obj or throws an exception if not an Obj

    Casts to Obj or throws an exception if not an Obj

    Definition Classes
    Json
  21. def asShort: Short
    Definition Classes
    Json
  22. def asStr: Str

    Casts to Str or throws an exception if not a Str

    Casts to Str or throws an exception if not a Str

    Definition Classes
    Json
  23. def asString: String

    Convenience method for asStr.value

    Convenience method for asStr.value

    Definition Classes
    Json
  24. def asType[V <: Json](type: JsonType[V]): V

    Safely casts this Json as the specified JsonType.

    Safely casts this Json as the specified JsonType. Throws an exception if not a match.

    V

    the return type

    Definition Classes
    Json
  25. def asVector: Vector[Json]

    Convenience method for asArr.value

    Convenience method for asArr.value

    Definition Classes
    Json
  26. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  29. final def filter(filter: JsonFilter): Option[Json]

    Applies the filter recursively to this value beginning on the leafs working backward up the tree back to the root.

    Applies the filter recursively to this value beginning on the leafs working backward up the tree back to the root.

    filter

    the filter to apply

    returns

    Option[Json]

    Definition Classes
    Json
  30. final def filterOne(filter: JsonFilter): Json
    Definition Classes
    Json
  31. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  32. final def get(path: JsonPath): Option[Json]

    Looks up a Json based on Path

    Looks up a Json based on Path

    Example: val o: Option[Json] = someValue("first" \ "second" \ "third")

    Definition Classes
    Json
  33. final def get(lookup: JsonPathEntry): Option[Json]
    Definition Classes
    Json
  34. final def get(lookup: String): Option[Json]

    Looks up a Json by name in the children.

    Looks up a Json by name in the children.

    Definition Classes
    Json
  35. def getArr: Option[Arr]

    Casts to Arr if it's of Arr type or returns None

    Casts to Arr if it's of Arr type or returns None

    Definition Classes
    Json
  36. final def getAsType[V <: Json](type: JsonType[V]): Option[V]

    Safely casts this Json as the specified JsonType.

    Safely casts this Json as the specified JsonType. Returns None if it's a different type.

    V

    the value type

    returns

    Option[V]

    Definition Classes
    Json
  37. def getBigDecimal: Option[BigDecimal]

    Convenience method for getNum.map(_.value)

    Convenience method for getNum.map(_.value)

    Definition Classes
    Json
  38. def getBool: Option[Bool]

    Casts to Bool if it's of Bool type or returns None

    Casts to Bool if it's of Bool type or returns None

    Definition Classes
    Json
  39. def getBoolean: Option[Boolean]

    Convenience method for getBool.map(_.value)

    Convenience method for getBool.map(_.value)

    Definition Classes
    Json
  40. def getByte: Option[Byte]
    Definition Classes
    Json
  41. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  42. def getDouble: Option[Double]
    Definition Classes
    Json
  43. def getFloat: Option[Float]
    Definition Classes
    Json
  44. def getInt: Option[Int]
    Definition Classes
    Json
  45. def getLong: Option[Long]
    Definition Classes
    Json
  46. def getMap: Option[Map[String, Json]]

    Convenience method for getObj.map(_.value)

    Convenience method for getObj.map(_.value)

    Definition Classes
    Json
  47. def getNum: Option[Num]

    Casts to Num if it's of Num type or returns None

    Casts to Num if it's of Num type or returns None

    Definition Classes
    Json
  48. def getObj: Option[Obj]

    Casts to Obj if it's of Obj type or returns None

    Casts to Obj if it's of Obj type or returns None

    Definition Classes
    Json
  49. final def getOrCreate(lookup: JsonPathEntry): Json

    Looks up a Json by name in the children or creates a new Obj if it doesn't exist.

    Looks up a Json by name in the children or creates a new Obj if it doesn't exist.

    Definition Classes
    Json
  50. def getShort: Option[Short]
    Definition Classes
    Json
  51. def getStr: Option[Str]

    Casts to Str if it's of Str type or returns None

    Casts to Str if it's of Str type or returns None

    Definition Classes
    Json
  52. def getString: Option[String]

    Convenience method for getStr.map(_.value)

    Convenience method for getStr.map(_.value)

    Definition Classes
    Json
  53. def getVector: Option[Vector[Json]]

    Convenience method for getArr.map(_.value)

    Convenience method for getArr.map(_.value)

    Definition Classes
    Json
  54. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  55. def isArr: Boolean

    True if this is an Arr

    True if this is an Arr

    Definition Classes
    Json
  56. def isBool: Boolean

    True if this is a Bool

    True if this is a Bool

    Definition Classes
    Json
  57. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  58. def isNull: Boolean

    True if this is a Null

    True if this is a Null

    Definition Classes
    Json
  59. def isNum: Boolean

    True if this is a Num

    True if this is a Num

    Definition Classes
    Json
  60. def isNumDec: Boolean
    Definition Classes
    Json
  61. def isNumInt: Boolean
    Definition Classes
    Json
  62. def isObj: Boolean

    True if this is an Obj

    True if this is an Obj

    Definition Classes
    Json
  63. def isStr: Boolean

    True if this is a Str

    True if this is a Str

    Definition Classes
    Json
  64. final def merge(value: Json, path: JsonPath = JsonPath.empty, config: MergeConfig = MergeConfig): Json

    Merges a Json at the specified path

    Merges a Json at the specified path

    value

    the value to merge

    path

    the path (defaults to Path.empty)

    config

    the merge configuration (defaults to MergeConfig)

    returns

    root Json after merge

    Definition Classes
    Json
  65. def modify(path: JsonPath)(f: (Json) => Json): Json

    Modifies the value at the specified path and returns back a new root Json with the modified path.

    Modifies the value at the specified path and returns back a new root Json with the modified path.

    Note: We use the term "modify" here from an immutable standpoint. The original Json will not change.

    path

    the path to modify

    f

    the function that takes the current Json and returns the modified Json

    returns

    new root Json representing the changes

    Definition Classes
    Json
  66. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  67. def nonEmpty: Boolean
    Definition Classes
    Json
  68. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  69. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  70. def remove(path: JsonPath): Json

    Convenience functionality for #modify to remove the value at a specific path.

    Convenience functionality for #modify to remove the value at a specific path.

    path

    the path to remove

    returns

    new root Json representing the changes

    Definition Classes
    Json
  71. def search(entries: SearchEntry*): List[JsonPath]
    Definition Classes
    Json
  72. def set(path: JsonPath, value: Json): Json

    Convenience functionality for #modify to set a specific value at a path.

    Convenience functionality for #modify to set a specific value at a path.

    path

    the path to replace

    value

    the new value to set

    returns

    new root Json representing the changes

    Definition Classes
    Json
  73. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  74. def toKey: String

    Generates a consistent key from this JSON.

    Generates a consistent key from this JSON. This can be useful for comparison or unique reference. Convenience wrapper for genKey.

    Definition Classes
    Json
  75. def toString(): String
    Definition Classes
    AnyRef → Any
  76. def transform(search: Search): Transformer
    Definition Classes
    Json
  77. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  78. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  79. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Json

Inherited from AnyRef

Inherited from Any

Ungrouped