sealed abstract class JsonObject extends AnyRef
A mapping from field to JSON value that maintains insertion order.
- Source
- JsonObject.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JsonObject
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
+(f: Json.JsonField, j: Json): JsonObject
Insert the given association.
-
abstract
def
+:(fj: (Json.JsonField, Json)): JsonObject
Prepend the given association.
-
abstract
def
-(f: Json.JsonField): JsonObject
Remove the given field association.
-
abstract
def
:+(fj: (Json.JsonField, Json)): JsonObject
Append the given association.
-
abstract
def
??(f: Json.JsonField): Boolean
Returns true if there is an association with the given field.
-
abstract
def
apply(f: Json.JsonField): Option[Json]
Return the JSON value associated with the given field.
-
abstract
def
fieldSet: Set[Json.JsonField]
Returns all association keys in arbitrary order.
-
abstract
def
fields: List[Json.JsonField]
Returns all association keys in insertion order.
-
abstract
def
isEmpty: Boolean
Returns true if there are no associations.
-
abstract
def
isNotEmpty: Boolean
Returns true if there is at least one association.
-
abstract
def
map(f: (Json) ⇒ Json): JsonObject
Map Json values.
-
abstract
def
size: Int
Returns the number of associations.
-
abstract
def
toList: List[Json.JsonAssoc]
Returns the list of associations in insertion order.
-
abstract
def
toMap: Map[Json.JsonField, Json]
Convert to a map.
-
abstract
def
values: List[Json]
Returns all associated values in insertion order.
-
abstract
def
withJsons(k: (Json) ⇒ Json): JsonObject
Transform all associated JSON values.
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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()
-
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
- @throws( ... ) @native()