object Json
Helper to construct JsonObjects and JsonArrays.
- Alphabetic
- By Inheritance
- Json
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
arr(fields: Any*): JsonArray
Creates a JsonArray from a sequence of values.
Creates a JsonArray from a sequence of values.
- fields
The elements to put into the JsonArray.
- returns
A JsonArray containing the provided elements.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
emptyArr(): JsonArray
Creates an empty JsonArray.
Creates an empty JsonArray.
- returns
An empty JsonArray.
-
def
emptyObj(): JsonObject
Creates an empty JsonObject.
Creates an empty JsonObject.
- returns
An empty JsonObject.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromArrayString(json: String): JsonArray
Creates a JsonArray from an encoded JSON string.
Creates a JsonArray from an encoded JSON string.
- json
The JSON string.
- returns
The decoded JsonArray.
-
def
fromObjectString(json: String): JsonObject
Creates a JsonObject from an encoded JSON string.
Creates a JsonObject from an encoded JSON string.
- json
The JSON string.
- returns
The decoded JsonObject.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
obj(fields: (String, Any)*): JsonObject
Constructs a JsonObject from a fieldName -> value pairs.
Constructs a JsonObject from a fieldName -> value pairs.
- fields
The fieldName -> value pairs
- returns
A JsonObject containing the name -> value pairs.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )