Class/Object

json

JValue

Related Docs: object JValue | package json

Permalink

sealed abstract class JValue extends JValueLike with JValueBase

This is the base type for all JSON values. JValue includes JS-like methods for handling data in generic JS type. Like JS, some of these methods are convenient but definitely not type safe, and some may result in odd type conversion or exceptions. For type-safe handling of JValues, consider using pattern matching the good ol' scala way.

Linear Supertypes
JValueBase, JValueLike, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JValue
  2. JValueBase
  3. JValueLike
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def appendJSONStringBuilder(settings: JSONBuilderSettings, out: SimpleStringBuilder, lvl: Int): SimpleStringBuilder

    Permalink
    Definition Classes
    JValueLike
  2. abstract def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    Equals
  3. abstract def toJBoolean: JBoolean

    Permalink

    JS-like boolean representation of this value.

    JS-like boolean representation of this value.

    Definition Classes
    JValueLike
  4. abstract def toJNumber: JNumber

    Permalink

    JS-like numeric representation of this value.

    JS-like numeric representation of this value.

    Definition Classes
    JValueLike
  5. abstract def toJString: JString

    Permalink

    JS-like string representation of this value.

    JS-like string representation of this value.

    Definition Classes
    JValueLike
  6. abstract def toNativeJS: Any

    Permalink
    Definition Classes
    JValueBase
  7. abstract def value: Any

    Permalink

    underlying scala value for this JValue

    underlying scala value for this JValue

    Definition Classes
    JValueLike

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !==(to: JValue): Boolean

    Permalink
    Definition Classes
    JValueLike
  3. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  4. def ++(that: JValue): JValue

    Permalink

    concats another JObject or JArray onto this value.

    concats another JObject or JArray onto this value. Must be the same type!

    Definition Classes
    JValueLike
  5. def -[T](key: T)(implicit acc: JSONAccessor[T]): JValue

    Permalink
    Definition Classes
    JValueLike
  6. final def -(x: JValue): JValue

    Permalink

    equivalent to javascript delete object[field]

    equivalent to javascript delete object[field]

    Definition Classes
    JValueLike
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def ===(x: JValue): Boolean

    Permalink
    Definition Classes
    JValueLike
  9. def \(idx: Int): JValue

    Permalink
    Definition Classes
    JValueLike
  10. def \(key: String): JValue

    Permalink

    alternate operator form of json.JValue#apply(key:String):json\.JValue

    alternate operator form of json.JValue#apply(key:String):json\.JValue

    Definition Classes
    JValueLike
  11. def apply(key: String): JValue

    Permalink

    select a key from this JValue.

    select a key from this JValue. Equivalent to bracket selects in JS.

    Definition Classes
    JValueLike
  12. def apply(x: JValue): JValue

    Permalink

    select a key from this JValue using a JValue.

    select a key from this JValue using a JValue. Equivalent to bracket selects in JS.

    Definition Classes
    JValueLike
  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def bool: Boolean

    Permalink

    gets the boolean value using jBoolean

    gets the boolean value using jBoolean

    Definition Classes
    JValueLike
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def d: JDynamic

    Permalink
    Definition Classes
    JValueLike
  17. def dynamic: JDynamic

    Permalink
    Definition Classes
    JValueLike
  18. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def fields: Map[String, JValue]

    Permalink

    gets the Map[String, JValue] value using jObject

    gets the Map[String, JValue] value using jObject

    Definition Classes
    JValueLike
  21. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. def isBoolean: Boolean

    Permalink
    Definition Classes
    JValueLike
  25. final def isDefined: Boolean

    Permalink
    Definition Classes
    JValueLike
  26. def isDefinedAt(x: JValue): Boolean

    Permalink
    Definition Classes
    JValueLike
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def isNaN: Boolean

    Permalink
    Definition Classes
    JValueLike
  29. final def isNull: Boolean

    Permalink
    Definition Classes
    JValueLike
  30. final def isNullOrUndefined: Boolean

    Permalink
    Definition Classes
    JValueLike
  31. def isObject: Boolean

    Permalink
    Definition Classes
    JValueLike
  32. final def isUndefined: Boolean

    Permalink
    Definition Classes
    JValueLike
  33. def jArray: JArray

    Permalink

    quickly cast to and array or throw a GenericJSONException otherwise.

    quickly cast to and array or throw a GenericJSONException otherwise.

    Definition Classes
    JValueLike
  34. def jBoolean: JBoolean

    Permalink

    quickly cast to a boolean or throw a GenericJSONException otherwise.

    quickly cast to a boolean or throw a GenericJSONException otherwise.

    Definition Classes
    JValueLike
  35. def jNumber: JNumber

    Permalink

    quickly cast to a number or throw a GenericJSONException otherwise.

    quickly cast to a number or throw a GenericJSONException otherwise.

    Definition Classes
    JValueLike
  36. def jObject: JObject

    Permalink

    quickly cast to and object or throw a GenericJSONException otherwise.

    quickly cast to and object or throw a GenericJSONException otherwise.

    Definition Classes
    JValueLike
  37. def jString: JString

    Permalink

    quickly cast to a string or throw a GenericJSONException otherwise.

    quickly cast to a string or throw a GenericJSONException otherwise.

    Definition Classes
    JValueLike
  38. def jValue: JValue

    Permalink
    Definition Classes
    JValueLike
  39. def keys: Iterable[JValue]

    Permalink

    keys for this JValue.

    keys for this JValue. Either iterable array indexes from JArray or iterable keys from a JObject

    Definition Classes
    JValueLike
  40. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  43. def num: Double

    Permalink

    gets the number value using jNumber

    gets the number value using jNumber

    Definition Classes
    JValueLike
  44. def select(seqStr: String): JValue

    Permalink

    select from a value with a '.' delimited string

    select from a value with a '.' delimited string

    Definition Classes
    JValueLike
  45. def select(seq: Seq[String], safe: Boolean): JValue

    Permalink

    select from a value with a sequence of keys

    select from a value with a sequence of keys

    Definition Classes
    JValueLike
  46. def select(seqStr: String, safe: Boolean): JValue

    Permalink

    select from a value with a '.' delimited string

    select from a value with a '.' delimited string

    seqStr

    period delimited string

    safe

    if true, you will get back JUndefined instead of an exception for undefined access

    Definition Classes
    JValueLike
  47. def str: String

    Permalink

    gets the string value using jString

    gets the string value using jString

    Definition Classes
    JValueLike
  48. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  49. def to[T](implicit arg0: JSONAccessor[T]): T

    Permalink

    converts this JValue into the desired type using the implicit JSONAccessor

    converts this JValue into the desired type using the implicit JSONAccessor

    Definition Classes
    JValueLike
  50. def toDenseString: String

    Permalink

    toString method that uses the dense builder settings

    toString method that uses the dense builder settings

    Definition Classes
    JValueLike
  51. def toJArray: JArray

    Permalink

    convert this JValue into an array if possible

    convert this JValue into an array if possible

    Definition Classes
    JValueLike
  52. def toJObject: JObject

    Permalink

    convert this JValue into an object if possible

    convert this JValue into an object if possible

    Definition Classes
    JValueLike
  53. def toJSON(): Any

    Permalink
    Definition Classes
    JValueBase
    Annotations
    @JSExport()
  54. def toJSONString: String

    Permalink
    Definition Classes
    JValueLike
  55. def toJSONStringBuilder(settings: JSONBuilderSettings = JSONBuilderSettings.pretty, lvl: Int = 0): SimpleStringBuilder

    Permalink
    Definition Classes
    JValueLike
  56. def toJValue: JValue

    Permalink
    Definition Classes
    JValueLike
  57. def toObject[T](implicit acc: JSONAccessor[T]): T

    Permalink

    alternate and recommended form of to

    alternate and recommended form of to

    Definition Classes
    JValueLike
  58. final def toOption: Option[JValue]

    Permalink

    return Some(x) if value is not undefined or null

    return Some(x) if value is not undefined or null

    Definition Classes
    JValueLike
  59. def toPrettyString: String

    Permalink

    toString method that uses the pretty builder settings

    toString method that uses the pretty builder settings

    Definition Classes
    JValueLike
  60. def toString(): String

    Permalink
    Definition Classes
    JValue → AnyRef → Any
  61. def toString(settings: JSONBuilderSettings, lvl: Int = 0): String

    Permalink

    toString method that uses a specific json.JSONBuilderSettings and specific indent level to generate JSON

    toString method that uses a specific json.JSONBuilderSettings and specific indent level to generate JSON

    Definition Classes
    JValueLike
  62. def unary_!(): JBoolean

    Permalink

    Boolean not according to JS boolean logic

    Boolean not according to JS boolean logic

    Definition Classes
    JValueLike
  63. def values: Iterable[JValue]

    Permalink

    gets the iterable JValues using jArray or the object values if JObject

    gets the iterable JValues using jArray or the object values if JObject

    Definition Classes
    JValueLike
  64. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. def ||[T >: JValue.this.type <: JValue](other: T): T

    Permalink

    Boolean OR using toJBoolean

  68. def ~~(to: JValue): Boolean

    Permalink

    This operator implements the JavaScript-like equality logic according to the JS Spec

    This operator implements the JavaScript-like equality logic according to the JS Spec

    Definition Classes
    JValueLike

Inherited from JValueBase

Inherited from JValueLike

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped