final case class JsObj(bindings: Map[String, JsValue] = HashMap.empty) extends AbstractJsObj with Traversable[(String, JsValue)] with Json[JsObj] with Product with Serializable
represents an immutable Json object. There are several ways of creating a Json object, being the most common the following:
- From a string, array of bytes or an input stream of bytes, using the parse functions of the companion object
- From the apply function of the companion object.
- bindings
immutable map of JsValue
- Alphabetic
- By Inheritance
- JsObj
- Serializable
- Serializable
- Product
- Equals
- Json
- JsValue
- Traversable
- GenTraversable
- GenericTraversableTemplate
- TraversableLike
- GenTraversableLike
- Parallelizable
- TraversableOnce
- GenTraversableOnce
- FilterMonadic
- HasNewBuilder
- AbstractJsObj
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
++[B >: (String, JsValue), That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
++:[B >: (String, JsValue), That](that: Traversable[B])(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
- Definition Classes
- TraversableLike
-
def
++:[B >: (String, JsValue), That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
- Definition Classes
- TraversableLike
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addString(b: StringBuilder): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
aggregate[B](z: ⇒ B)(seqop: (B, (String, JsValue)) ⇒ B, combop: (B, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
apply(key: String): JsValue
Retrieves the value which is associated with the given key.
Retrieves the value which is associated with the given key. If there is no mapping from the given key to a value,
JsNothing
is returned.- key
the key
- returns
the value associated with the given key
-
final
def
apply(path: JsPath): JsValue
Returns the element located at a specified path.
Returns the element located at a specified path. This function is total on its argument. If no element is found, JsNothing is returned
- path
the path
- returns
the json value found at the path
- Definition Classes
- Json
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
collect[B, That](pf: PartialFunction[(String, JsValue), B])(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
collectFirst[B](pf: PartialFunction[(String, JsValue), B]): Option[B]
- Definition Classes
- TraversableOnce
-
def
companion: GenericCompanion[Traversable]
- Definition Classes
- Traversable → GenTraversable → GenericTraversableTemplate
-
def
concat(other: JsObj): JsObj
- Annotations
- @tailrec()
-
def
containsKey(key: String): Boolean
Tests whether this json object contains a binding for a key.
Tests whether this json object contains a binding for a key.
- key
the key
- returns
true
if there is a binding forkey
in this map,false
otherwise.
-
def
containsPath(path: JsPath): Boolean
Returns true if there is an element at the specified path
Returns true if there is an element at the specified path
- path
the path
- returns
true if the path exists, false otherwise
- Definition Classes
- Json
-
def
copyToArray[B >: (String, JsValue)](xs: Array[B], start: Int, len: Int): Unit
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: (String, JsValue)](xs: Array[B]): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: (String, JsValue)](xs: Array[B], start: Int): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToBuffer[B >: (String, JsValue)](dest: Buffer[B]): Unit
- Definition Classes
- TraversableOnce
-
def
count(p: ((String, JsValue)) ⇒ Boolean): Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
drop(n: Int): Traversable[(String, JsValue)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
dropWhile(p: ((String, JsValue)) ⇒ Boolean): Traversable[(String, JsValue)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- JsObj → Equals → AnyRef → Any
-
def
exists(p: ((String, JsValue)) ⇒ Boolean): Boolean
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
- def filter(p: (String, JsValue) ⇒ Boolean): JsObj
-
def
filter(p: ((String, JsValue)) ⇒ Boolean): Traversable[(String, JsValue)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
filterAll(p: (JsPrimitive) ⇒ Boolean): JsObj
- Definition Classes
- AbstractJsObj
-
def
filterAll(p: (JsPath, JsPrimitive) ⇒ Boolean): JsObj
Selects all elements of this Json object which satisfy a predicate.
Selects all elements of this Json object which satisfy a predicate.
- returns
a new Json object consisting of all elements of this Json object that satisfy the given predicate p. The order of the elements is preserved.
- Definition Classes
- AbstractJsObj
-
def
filterAllJsObj(p: (JsObj) ⇒ Boolean): JsObj
- Definition Classes
- AbstractJsObj
-
def
filterAllJsObj(p: (JsPath, JsObj) ⇒ Boolean): JsObj
- Definition Classes
- AbstractJsObj
-
def
filterAllKeys(p: (String) ⇒ Boolean): JsObj
- Definition Classes
- AbstractJsObj
-
def
filterAllKeys(p: (JsPath, JsValue) ⇒ Boolean): JsObj
- Definition Classes
- AbstractJsObj
-
def
filterNot(p: ((String, JsValue)) ⇒ Boolean): Traversable[(String, JsValue)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(p: ((String, JsValue)) ⇒ Boolean): Option[(String, JsValue)]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
flatMap[B, That](f: ((String, JsValue)) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
flatten: Stream[(JsPath, JsValue)]
Flatten this Json object into a
Stream
of pairs of(JsPath,JsValue)
traversing recursively every noe-empty Json found along the way. -
def
flatten[B](implicit asTraversable: ((String, JsValue)) ⇒ GenTraversableOnce[B]): Traversable[B]
- Definition Classes
- GenericTraversableTemplate
-
def
fold[A1 >: (String, JsValue)](z: A1)(op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldLeft[B](z: B)(op: (B, (String, JsValue)) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldRight[B](z: B)(op: ((String, JsValue), B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
forall(p: ((String, JsValue)) ⇒ Boolean): Boolean
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
foreach[U](f: ((String, JsValue)) ⇒ U): Unit
- Definition Classes
- JsObj → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
-
def
genericBuilder[B]: Builder[B, Traversable[B]]
- Definition Classes
- GenericTraversableTemplate
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
groupBy[K](f: ((String, JsValue)) ⇒ K): Map[K, Traversable[(String, JsValue)]]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
hasDefiniteSize: Boolean
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
head: (String, JsValue)
Selects the next element of the iterator of this Json object, throwing a NoSuchElementException if the Json object is empty
-
def
headOption: Option[(String, JsValue)]
Optionally selects the next element of the iterator of this Json object.
-
def
id: Int
Every implementation of this trait has an unique identifier in order.
-
def
init: JsObj
The initial part of the Json object without its last element.
-
def
inits: Iterator[Traversable[(String, JsValue)]]
- Definition Classes
- TraversableLike
-
def
insert(path: JsPath, value: JsValue, padWith: JsValue = JsNull): JsObj
Creates a new Json obtained by inserting a given path/value pair into this Json.
Creates a new Json obtained by inserting a given path/value pair into this Json. The given element is always inserted at the given path, even if it requires to create new Json or padding arrays.
- path
the path
- value
the value
- returns
A new Json with the new path/value mapping added to this Json.
-
def
isArr: Boolean
returns true if this is an array
-
def
isArr(predicate: (JsArray) ⇒ Boolean): Boolean
returns true if this is an array that satisfies a predicate
returns true if this is an array that satisfies a predicate
- Definition Classes
- JsValue
-
def
isBigDec: Boolean
returns true if this is a big decimal.
-
def
isBigInt: Boolean
returns true if this is a big integer.
-
def
isBool: Boolean
returns true if this is a boolean
-
def
isDecimal(predicate: (BigDecimal) ⇒ Boolean): Boolean
returns true if this is a big decimal that satisfies a predicate
returns true if this is a big decimal that satisfies a predicate
- Definition Classes
- JsValue
-
def
isDecimal: Boolean
returns true if this type is a decimal number
-
def
isDouble: Boolean
returns true if this is a double
-
def
isDouble(predicate: (Double) ⇒ Boolean): Boolean
returns true if this is a double that satisfies a predicate
returns true if this is a double that satisfies a predicate
- Definition Classes
- JsValue
-
def
isEmpty: Boolean
Tests whether the Json object is empty.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isInt: Boolean
returns true if this is an integer (32 bit precision number)
-
def
isInt(predicate: (Int) ⇒ Boolean): Boolean
returns true if this is an integer that satisfies a predicate
returns true if this is an integer that satisfies a predicate
- Definition Classes
- JsValue
-
def
isIntegral(predicate: (BigInt) ⇒ Boolean): Boolean
returns true if this is a big integer that satisfies a predicate
returns true if this is a big integer that satisfies a predicate
- Definition Classes
- JsValue
-
def
isIntegral: Boolean
returns true if this type is an integral number
returns true if this type is an integral number
- returns
isInt || isLong || isBigInt
- Definition Classes
- JsValue
-
def
isJson: Boolean
returns true is this type is an array or an object
returns true is this type is an array or an object
- Definition Classes
- JsValue
-
def
isJson(predicate: (Json[_]) ⇒ Boolean): Boolean
returns true if this is a json that satisfies a predicate
returns true if this is a json that satisfies a predicate
- predicate
the predicate
- Definition Classes
- JsValue
-
def
isLong: Boolean
returns true if this is a long (62 bit precision number)
-
def
isLong(predicate: (Long) ⇒ Boolean): Boolean
returns true if this is a long that satisfies a predicate
returns true if this is a long that satisfies a predicate
- Definition Classes
- JsValue
-
def
isNotEmpty: Boolean
- Definition Classes
- Json
-
def
isNotJson: Boolean
returns true if this is neither an object nor an array
returns true if this is neither an object nor an array
- Definition Classes
- JsValue
-
def
isNotNull: Boolean
returns true if this is not null
returns true if this is not null
- Definition Classes
- JsValue
-
def
isNotNumber: Boolean
returns true if this is not a number
returns true if this is not a number
- Definition Classes
- JsValue
-
def
isNothing: Boolean
returns true if this is JsNothing
-
def
isNull: Boolean
returns true if this is JsNull
-
def
isNumber: Boolean
returns true if this is a number
-
def
isObj: Boolean
returns true if this is an object
-
def
isObj(predicate: (JsObj) ⇒ Boolean): Boolean
returns true if this is an object that satisfies a predicate
returns true if this is an object that satisfies a predicate
- Definition Classes
- JsValue
-
def
isPrimitive: Boolean
returns true is this is a primitive type
-
def
isStr: Boolean
returns true if this is a string
-
def
isStr(predicate: (String) ⇒ Boolean): Boolean
returns true if this is a string that satisfies a predicate
returns true if this is a string that satisfies a predicate
- Definition Classes
- JsValue
-
final
def
isTraversableAgain: Boolean
- Definition Classes
- TraversableLike → GenTraversableLike → GenTraversableOnce
-
def
iterator: Iterator[(String, JsValue)]
Returns an iterator of this Json object.
Returns an iterator of this Json object. Can be used only once
- returns
an iterator
-
def
keySet: Set[String]
Collects all keys of this map in a set.
Collects all keys of this map in a set.
- returns
a set containing all keys of this map.
-
def
keys: Iterable[String]
Collects all keys of this Json object in an iterable collection.
Collects all keys of this Json object in an iterable collection.
- returns
the keys of this Json object as an iterable.
-
def
last: (String, JsValue)
Selects the last element of the iterator of this Json object, throwing a NoSuchElementException if the Json object is empty
Selects the last element of the iterator of this Json object, throwing a NoSuchElementException if the Json object is empty
- returns
the last element of the iterator of this Json object.
- Definition Classes
- JsObj → TraversableLike → GenTraversableLike
-
def
lastOption: Option[(String, JsValue)]
Optionally selects the last element of the iterator of this Json object.
Optionally selects the last element of the iterator of this Json object.
- returns
the last element of the iterator of this Json object,
None
if it is empty.
- Definition Classes
- JsObj → TraversableLike → GenTraversableLike
-
def
map[B, That](f: ((String, JsValue)) ⇒ B)(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
map(m: (String, JsValue) ⇒ JsValue, p: (String, JsValue) ⇒ Boolean = (_, _) => true): JsObj
- Definition Classes
- AbstractJsObj
-
def
mapAll(m: (JsPath, JsPrimitive) ⇒ JsValue, p: (JsPath, JsPrimitive) ⇒ Boolean = (_, _) => true): JsObj
- Definition Classes
- AbstractJsObj
-
def
mapAll(m: (JsPrimitive) ⇒ JsValue): JsObj
- Definition Classes
- AbstractJsObj
-
def
mapAllKeys(m: (String) ⇒ String): JsObj
- Definition Classes
- AbstractJsObj
-
def
mapAllKeys(m: (JsPath, JsValue) ⇒ String, p: (JsPath, JsValue) ⇒ Boolean = (_, _) => true): JsObj
- Definition Classes
- AbstractJsObj
-
def
mapKeys(m: (String, JsValue) ⇒ String, p: (String, JsValue) ⇒ Boolean = (_, _) => true): JsObj
- Definition Classes
- AbstractJsObj
-
def
max[B >: (String, JsValue)](implicit cmp: Ordering[B]): (String, JsValue)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
maxBy[B](f: ((String, JsValue)) ⇒ B)(implicit cmp: Ordering[B]): (String, JsValue)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
min[B >: (String, JsValue)](implicit cmp: Ordering[B]): (String, JsValue)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
minBy[B](f: ((String, JsValue)) ⇒ B)(implicit cmp: Ordering[B]): (String, JsValue)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString: String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(sep: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(start: String, sep: String, end: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newBuilder: Builder[(String, JsValue), Traversable[(String, JsValue)]]
- Attributes
- protected[this]
- Definition Classes
- GenericTraversableTemplate → HasNewBuilder
-
def
nonEmpty: Boolean
returns true if the Json is non empty
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
par: ParIterable[(String, JsValue)]
- Definition Classes
- Parallelizable
-
def
parCombiner: Combiner[(String, JsValue), ParIterable[(String, JsValue)]]
- Attributes
- protected[this]
- Definition Classes
- TraversableLike → Parallelizable
-
def
partition(p: ((String, JsValue)) ⇒ Boolean): (Traversable[(String, JsValue)], Traversable[(String, JsValue)])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
product[B >: (String, JsValue)](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduce[A1 >: (String, JsValue)](op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceAll[V](p: (JsPath, JsPrimitive) ⇒ Boolean = (_, _) => true, m: (JsPath, JsPrimitive) ⇒ V, r: (V, V) ⇒ V): Option[V]
- Definition Classes
- AbstractJsObj
-
def
reduceLeft[B >: (String, JsValue)](op: (B, (String, JsValue)) ⇒ B): B
- Definition Classes
- TraversableOnce
-
def
reduceLeftOption[B >: (String, JsValue)](op: (B, (String, JsValue)) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceOption[A1 >: (String, JsValue)](op: (A1, A1) ⇒ A1): Option[A1]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRight[B >: (String, JsValue)](op: ((String, JsValue), B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRightOption[B >: (String, JsValue)](op: ((String, JsValue), B) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
remove(path: JsPath): JsObj
Removes a path from this Json
-
def
removeAll(xs: TraversableOnce[JsPath]): JsObj
Creates a new Json from this Json by removing all paths of another collection
-
def
repr: Traversable[(String, JsValue)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
reversed: List[(String, JsValue)]
- Attributes
- protected[this]
- Definition Classes
- TraversableOnce
-
def
scan[B >: (String, JsValue), That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanLeft[B, That](z: B)(op: (B, (String, JsValue)) ⇒ B)(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanRight[B, That](z: B)(op: ((String, JsValue), B) ⇒ B)(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
- Annotations
- @migration
- Migration
(Changed in version 2.9.0) The behavior of
scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
-
def
seq: Traversable[(String, JsValue)]
- Definition Classes
- Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
-
def
serialize: Array[Byte]
Serialize this Json into an array of bytes.
Serialize this Json into an array of bytes. When possible, it's more efficient to work on byte level that with strings
- returns
this Json serialized into an array of bytes
- Definition Classes
- Json
-
def
serialize(outputStream: OutputStream): () ⇒ Unit
Returns a zero-argument function that when called, it serializes this Json into the given output stream, no returning anything
Returns a zero-argument function that when called, it serializes this Json into the given output stream, no returning anything
- outputStream
the output stream
- returns
() => Unit function that serializes this Json into the given output stream
- Definition Classes
- Json
-
def
size: Int
The size of this Json object.
-
def
sizeHintIfCheap: Int
- Attributes
- protected[collection]
- Definition Classes
- GenTraversableOnce
-
def
slice(from: Int, until: Int): Traversable[(String, JsValue)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
span(p: ((String, JsValue)) ⇒ Boolean): (Traversable[(String, JsValue)], Traversable[(String, JsValue)])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
splitAt(n: Int): (Traversable[(String, JsValue)], Traversable[(String, JsValue)])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
stringPrefix: String
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
sum[B >: (String, JsValue)](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tail: JsObj
The rest of the Json object without its first element.
-
def
tails: Iterator[Traversable[(String, JsValue)]]
- Definition Classes
- TraversableLike
-
def
take(n: Int): Traversable[(String, JsValue)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
takeWhile(p: ((String, JsValue)) ⇒ Boolean): Traversable[(String, JsValue)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
thisCollection: Traversable[(String, JsValue)]
- Attributes
- protected[this]
- Definition Classes
- TraversableLike
-
def
to[Col[_]](implicit cbf: CanBuildFrom[Nothing, (String, JsValue), Col[(String, JsValue)]]): Col[(String, JsValue)]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
toArray[B >: (String, JsValue)](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toBuffer[B >: (String, JsValue)]: Buffer[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toCollection(repr: Traversable[(String, JsValue)]): Traversable[(String, JsValue)]
- Attributes
- protected[this]
- Definition Classes
- TraversableLike
-
def
toIndexedSeq: IndexedSeq[(String, JsValue)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIterable: Iterable[(String, JsValue)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIterator: Iterator[(String, JsValue)]
- Definition Classes
- TraversableLike → GenTraversableOnce
-
def
toJsArray: JsArray
Throws an UserError exception
-
def
toJsBigDec: JsBigDec
returns this value as a JsBigDec if it's a decimal number, throwing an UserError otherwise.
-
def
toJsBigInt: JsBigInt
returns this value as a JsBigInt if it's an integral number, throwing an UserError otherwise.
-
def
toJsBool: JsBool
returns this value as a JsBool if it's a boolean, throwing an UserError otherwise.
-
def
toJsDouble: JsDouble
returns this value as a JsDouble if it is a JsLong or a JsInt or a JsDouble, throwing an UserError otherwise.
-
def
toJsInt: JsInt
returns this value as a JsInt, throwing an UserError otherwise.
-
def
toJsLong: JsLong
returns this value as a JsLong if it is a JsLong or a JsInt, throwing an UserError otherwise.
-
def
toJsNull: JsNull.type
returns this value as a JsNull if it's null, throwing an UserError otherwise.
-
def
toJsNumber: JsNumber
returns this value as a JsNumber if it's a number, throwing an UserError otherwise.
-
def
toJsObj: JsObj
Returns this Json object
- def toJsPrimitive: JsPrimitive
-
def
toJsStr: JsStr
returns this value as a JsStr if it's a string, throwing an UserError otherwise.
-
def
toJson: Json[_]
Returns this Json object as a
Json
-
def
toList: List[(String, JsValue)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toMap[T, U](implicit ev: <:<[(String, JsValue), (T, U)]): Map[T, U]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toPrettyString: String
Converts the string representation of this Json to a pretty print version
Converts the string representation of this Json to a pretty print version
- returns
pretty print version of the string representation of this Json
- Definition Classes
- Json
-
def
toSeq: Seq[(String, JsValue)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toSet[B >: (String, JsValue)]: Set[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toStream: Stream[(String, JsValue)]
- Definition Classes
- TraversableLike → GenTraversableOnce
-
def
toString(): String
string representation of this Json array.
string representation of this Json array. It's a lazy value which is only computed once.
- returns
string representation of this Json array
- Definition Classes
- JsObj → TraversableLike → AnyRef → Any
-
def
toTraversable: Traversable[(String, JsValue)]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toVector: Vector[(String, JsValue)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
transpose[B](implicit asTraversable: ((String, JsValue)) ⇒ GenTraversableOnce[B]): Traversable[Traversable[B]]
- Definition Classes
- GenericTraversableTemplate
- Annotations
- @migration
- Migration
(Changed in version 2.9.0)
transpose
throws anIllegalArgumentException
if collections are not uniformly sized.
-
def
unzip[A1, A2](implicit asPair: ((String, JsValue)) ⇒ (A1, A2)): (Traversable[A1], Traversable[A2])
- Definition Classes
- GenericTraversableTemplate
-
def
unzip3[A1, A2, A3](implicit asTriple: ((String, JsValue)) ⇒ (A1, A2, A3)): (Traversable[A1], Traversable[A2], Traversable[A3])
- Definition Classes
- GenericTraversableTemplate
- def validate(spec: JsObjSpec): Stream[(JsPath, Invalid)]
-
def
view(from: Int, until: Int): TraversableView[(String, JsValue), Traversable[(String, JsValue)]]
- Definition Classes
- TraversableLike
-
def
view: TraversableView[(String, JsValue), Traversable[(String, JsValue)]]
- Definition Classes
- TraversableLike
-
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()
-
def
withFilter(p: ((String, JsValue)) ⇒ Boolean): FilterMonadic[(String, JsValue), Traversable[(String, JsValue)]]
- Definition Classes
- TraversableLike → FilterMonadic
Deprecated Value Members
-
def
/:[B](z: B)(op: (B, (String, JsValue)) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
- Annotations
- @deprecated
- Deprecated
(Since version 2.12.10) Use foldLeft instead of /:
-
def
:\[B](z: B)(op: ((String, JsValue), B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
- Annotations
- @deprecated
- Deprecated
(Since version 2.12.10) Use foldRight instead of :\