Packages

class JsonValue extends JsonValueBase

Maps values other than JObject and JArray in JSON standards to primitive value types.

Linear Supertypes
JsonValueBase, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonValue
  2. JsonValueBase
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsonValue(value: String)

    Creates an instance of JsonValue of type JsonDataType.String.

    Creates an instance of JsonValue of type JsonDataType.String.

    value

    The String value to be set as JsonValue.

  2. new JsonValue(value: Date)

    Creates an instance of JsonValue of type JsonDataType.String.

    Creates an instance of JsonValue of type JsonDataType.String.

    value

    The Date value to be set as JsonValue.

  3. new JsonValue(value: Double)

    Creates an instance of JsonValue of type JsonDataType.Number.

    Creates an instance of JsonValue of type JsonDataType.Number.

    value

    The double value to be set as JsonValue.

  4. new JsonValue(value: BigDecimal)

    Creates an instance of JsonValue of type JsonDataType.Number.

    Creates an instance of JsonValue of type JsonDataType.Number.

    value

    The BigDecimal value to be set as JsonValue.

  5. new JsonValue(value: Float)

    Creates an instance of JsonValue of type JsonDataType.Number.

    Creates an instance of JsonValue of type JsonDataType.Number.

    value

    The float value to be set as JsonValue.

  6. new JsonValue(value: Long)

    Creates an instance of JsonValue of type JsonDataType.Number.

    Creates an instance of JsonValue of type JsonDataType.Number.

    value

    The long value to be set as JsonValue.

  7. new JsonValue(value: Int)

    Creates an instance of JsonValue of type JsonDataType.Number.

    Creates an instance of JsonValue of type JsonDataType.Number.

    value

    The int value to be set as JsonValue.

  8. new JsonValue(value: Short)

    Creates an instance of JsonValue of type JsonDataType.Number.

    Creates an instance of JsonValue of type JsonDataType.Number.

    value

    The short value to be set as JsonValue.

  9. new JsonValue(value: Byte)

    Creates an instance of JsonValue of type JsonDataType.Number.

    Creates an instance of JsonValue of type JsonDataType.Number.

    value

    The byte value to be set as JsonValue.

  10. new JsonValue(value: Boolean)

    Creates an instance of JsonValue of type JsonDataType.Boolean.

    Creates an instance of JsonValue of type JsonDataType.Boolean.

    value

    The boolean value to be set as JsonValue.

  11. new JsonValue(value: Any)

    Creates an instance of JsonValue with the specified object and type set to JsonDataType.Object.

    Creates an instance of JsonValue with the specified object and type set to JsonDataType.Object.

    value

    The object being used as jsonvalue.

  12. new JsonValue(internalJsonValue: JsonValue)

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 asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(obj: Any): Boolean

    Indicates whether some other object is "equal to" this one.

    Indicates whether some other object is "equal to" this one.

    The equals method implements an equivalence relation on non-null object references:

    • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
    • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
    • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
    • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
    • For any non-null reference value x, x.equals(null) should return false.

    The equals method for class Object implements the most discriminating possible equivalence relation on objects; that is, for any non-null reference values x and y, this method returns true if and only if x and y refer to the same object (x == y has the value true).

    Note that it is generally necessary to override the hashCode method whenever this method is overridden, so as to maintain the general contract for the hashCode method, which states that equal objects must have equal hash codes.

    obj

    the reference object with which to compare.

    returns

    true if this object is the same as the obj argument; false otherwise.

    Definition Classes
    JsonValue → AnyRef → Any
    See also

    #hashCode()

    java.util.HashMap

  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def getDataType: JsonDataType

    Gets the type of the json object.

    Gets the type of the json object.

    returns

    The type of the json object.

  10. def getValue: AnyRef

    Gets the value of the json object.

    Gets the value of the json object.

    returns

    The value of the json object.

  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toBoolean: Boolean

    Attempts to convert JSON value to boolean.

    Attempts to convert JSON value to boolean.

    returns

    converted boolean value.

  18. def toByte: Byte

    Attempts to convert JSON value to byte.

    Attempts to convert JSON value to byte.

    returns

    converted byte value.

  19. def toDate: Date

    Attempts to convert JSON value to DateTime with standard format and culture.

    Attempts to convert JSON value to DateTime with standard format and culture.

    returns

    converted DateTime value.

  20. def toDecimal: BigDecimal

    Attempts to convert JSON value to decimal.

    Attempts to convert JSON value to decimal.

    returns

    converted decimal value.

  21. def toDouble: Double

    Attempts to convert JSON value to double.

    Attempts to convert JSON value to double.

    returns

    converted double value.

  22. def toFloat: Float

    Attempts to convert JSON value to float.

    Attempts to convert JSON value to float.

    returns

    converted float value.

  23. def toInt16: Short

    Attempts to convert JSON value to short.

    Attempts to convert JSON value to short.

    returns

    converted short value.

  24. def toInt32: Int

    Attempts to convert JSON value to int.

    Attempts to convert JSON value to int.

    returns

    converted int value.

  25. def toInt64: Long

    Attempts to convert JSON value to int 64.

    Attempts to convert JSON value to int 64.

    returns

    converted long value.

  26. def toJson: String

    Gets the string representation of the JsonValueBase.

    Gets the string representation of the JsonValueBase.

    returns

    The string representation of the JsonValueBase.

  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. def toStringValue: String

    Attempts to convert JSON value to string.

    Attempts to convert JSON value to string.

    returns

    converted string value.

  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from JsonValueBase

Inherited from AnyRef

Inherited from Any

Ungrouped