Packages

class JSONObject extends org.json.JSONObject

Custom JSON Object which overrides org.json implementation to add a validation for trailing commas and stringToValue static method implementation.

Linear Supertypes
org.json.JSONObject, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JSONObject
  2. JSONObject
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JSONObject(x: JSONTokener)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from JSONObject to any2stringadd[JSONObject] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (JSONObject, B)
    Implicit
    This member is added by an implicit conversion from JSONObject to ArrowAssoc[JSONObject] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def accumulate(arg0: String, arg1: Any): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  7. def append(arg0: String, arg1: Any): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clear(): Unit
    Definition Classes
    JSONObject
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  11. def ensuring(cond: (JSONObject) ⇒ Boolean, msg: ⇒ Any): JSONObject
    Implicit
    This member is added by an implicit conversion from JSONObject to Ensuring[JSONObject] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (JSONObject) ⇒ Boolean): JSONObject
    Implicit
    This member is added by an implicit conversion from JSONObject to Ensuring[JSONObject] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): JSONObject
    Implicit
    This member is added by an implicit conversion from JSONObject to Ensuring[JSONObject] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): JSONObject
    Implicit
    This member is added by an implicit conversion from JSONObject to Ensuring[JSONObject] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def entrySet(): Set[Entry[String, AnyRef]]
    Attributes
    protected[org.json]
    Definition Classes
    JSONObject
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. def get(arg0: String): AnyRef
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  19. def getBigDecimal(arg0: String): BigDecimal
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  20. def getBigInteger(arg0: String): BigInteger
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  21. def getBoolean(arg0: String): Boolean
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  23. def getDouble(arg0: String): Double
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  24. def getEnum[E <: Enum[E]](arg0: Class[E], arg1: String): E
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  25. def getFloat(arg0: String): Float
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  26. def getInt(arg0: String): Int
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  27. def getJSONArray(arg0: String): org.json.JSONArray
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  28. def getJSONObject(arg0: String): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  29. def getLong(arg0: String): Long
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  30. def getMapType(): Class[_ <: Map[_, _]]
    Definition Classes
    JSONObject
  31. def getNumber(arg0: String): Number
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  32. def getString(arg0: String): String
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  33. def has(arg0: String): Boolean
    Definition Classes
    JSONObject
  34. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  35. def increment(arg0: String): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  36. def isEmpty(): Boolean
    Definition Classes
    JSONObject
  37. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  38. def isNull(arg0: String): Boolean
    Definition Classes
    JSONObject
  39. def keySet(): Set[String]
    Definition Classes
    JSONObject
  40. def keys(): Iterator[String]
    Definition Classes
    JSONObject
  41. def length(): Int
    Definition Classes
    JSONObject
  42. def names(): org.json.JSONArray
    Definition Classes
    JSONObject
  43. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  45. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  46. def opt(arg0: String): AnyRef
    Definition Classes
    JSONObject
  47. def optBigDecimal(arg0: String, arg1: BigDecimal): BigDecimal
    Definition Classes
    JSONObject
  48. def optBigInteger(arg0: String, arg1: BigInteger): BigInteger
    Definition Classes
    JSONObject
  49. def optBoolean(arg0: String, arg1: Boolean): Boolean
    Definition Classes
    JSONObject
  50. def optBoolean(arg0: String): Boolean
    Definition Classes
    JSONObject
  51. def optBooleanObject(arg0: String, arg1: Boolean): Boolean
    Definition Classes
    JSONObject
  52. def optBooleanObject(arg0: String): Boolean
    Definition Classes
    JSONObject
  53. def optDouble(arg0: String, arg1: Double): Double
    Definition Classes
    JSONObject
  54. def optDouble(arg0: String): Double
    Definition Classes
    JSONObject
  55. def optDoubleObject(arg0: String, arg1: Double): Double
    Definition Classes
    JSONObject
  56. def optDoubleObject(arg0: String): Double
    Definition Classes
    JSONObject
  57. def optEnum[E <: Enum[E]](arg0: Class[E], arg1: String, arg2: E): E
    Definition Classes
    JSONObject
  58. def optEnum[E <: Enum[E]](arg0: Class[E], arg1: String): E
    Definition Classes
    JSONObject
  59. def optFloat(arg0: String, arg1: Float): Float
    Definition Classes
    JSONObject
  60. def optFloat(arg0: String): Float
    Definition Classes
    JSONObject
  61. def optFloatObject(arg0: String, arg1: Float): Float
    Definition Classes
    JSONObject
  62. def optFloatObject(arg0: String): Float
    Definition Classes
    JSONObject
  63. def optInt(arg0: String, arg1: Int): Int
    Definition Classes
    JSONObject
  64. def optInt(arg0: String): Int
    Definition Classes
    JSONObject
  65. def optIntegerObject(arg0: String, arg1: Integer): Integer
    Definition Classes
    JSONObject
  66. def optIntegerObject(arg0: String): Integer
    Definition Classes
    JSONObject
  67. def optJSONArray(arg0: String, arg1: org.json.JSONArray): org.json.JSONArray
    Definition Classes
    JSONObject
  68. def optJSONArray(arg0: String): org.json.JSONArray
    Definition Classes
    JSONObject
  69. def optJSONObject(arg0: String, arg1: org.json.JSONObject): org.json.JSONObject
    Definition Classes
    JSONObject
  70. def optJSONObject(arg0: String): org.json.JSONObject
    Definition Classes
    JSONObject
  71. def optLong(arg0: String, arg1: Long): Long
    Definition Classes
    JSONObject
  72. def optLong(arg0: String): Long
    Definition Classes
    JSONObject
  73. def optLongObject(arg0: String, arg1: Long): Long
    Definition Classes
    JSONObject
  74. def optLongObject(arg0: String): Long
    Definition Classes
    JSONObject
  75. def optNumber(arg0: String, arg1: Number): Number
    Definition Classes
    JSONObject
  76. def optNumber(arg0: String): Number
    Definition Classes
    JSONObject
  77. def optQuery(arg0: JSONPointer): AnyRef
    Definition Classes
    JSONObject
  78. def optQuery(arg0: String): AnyRef
    Definition Classes
    JSONObject
  79. def optString(arg0: String, arg1: String): String
    Definition Classes
    JSONObject
  80. def optString(arg0: String): String
    Definition Classes
    JSONObject
  81. def put(arg0: String, arg1: Any): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  82. def put(arg0: String, arg1: Map[_, _]): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  83. def put(arg0: String, arg1: Long): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  84. def put(arg0: String, arg1: Int): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  85. def put(arg0: String, arg1: Float): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  86. def put(arg0: String, arg1: Double): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  87. def put(arg0: String, arg1: Collection[_]): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  88. def put(arg0: String, arg1: Boolean): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  89. def putOnce(arg0: String, arg1: Any): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  90. def putOpt(arg0: String, arg1: Any): org.json.JSONObject
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  91. def query(arg0: JSONPointer): AnyRef
    Definition Classes
    JSONObject
  92. def query(arg0: String): AnyRef
    Definition Classes
    JSONObject
  93. def remove(arg0: String): AnyRef
    Definition Classes
    JSONObject
  94. def similar(arg0: Any): Boolean
    Definition Classes
    JSONObject
  95. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  96. def toJSONArray(arg0: org.json.JSONArray): org.json.JSONArray
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  97. def toMap(): Map[String, AnyRef]
    Definition Classes
    JSONObject
  98. def toString(arg0: Int): String
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  99. def toString(): String
    Definition Classes
    JSONObject → AnyRef → Any
  100. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  102. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  103. def write(arg0: Writer, arg1: Int, arg2: Int): Writer
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  104. def write(arg0: Writer): Writer
    Definition Classes
    JSONObject
    Annotations
    @throws( classOf[org.json.JSONException] )
  105. def [B](y: B): (JSONObject, B)
    Implicit
    This member is added by an implicit conversion from JSONObject to ArrowAssoc[JSONObject] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated
  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from JSONObject to StringFormat[JSONObject] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

Inherited from org.json.JSONObject

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from JSONObject to any2stringadd[JSONObject]

Inherited by implicit conversion StringFormat from JSONObject to StringFormat[JSONObject]

Inherited by implicit conversion Ensuring from JSONObject to Ensuring[JSONObject]

Inherited by implicit conversion ArrowAssoc from JSONObject to ArrowAssoc[JSONObject]

Ungrouped