implicit class JValueOps extends AnyRef
- Alphabetic
- By Inheritance
- JValueOps
- 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
-
def
++(other: JValue): JValue
Concatenate with another JSON.
Concatenate with another JSON. This is a concatenation monoid: (JValue, ++, JUndefined)
-
def
-->[A <: JValue](clazz: Class[A]): A
Returns the element as a JValue of the specified class.
-
def
-->?[A <: JValue](clazz: Class[A]): Option[A]
Returns the element as an option of a JValue of the specified class.
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
\(nameToFind: String): JValue
XPath-like expression to query JSON fields by name.
XPath-like expression to query JSON fields by name. Matches only fields on next level.
- def \?(nameToFind: String): Option[JValue]
-
def
\\(nameToFind: String): JValue
XPath-like expression to query JSON fields by name.
XPath-like expression to query JSON fields by name. Returns all matching fields.
-
def
apply(i: Int): JValue
Return nth element from JSON Array.
- def apply(node: JPathNode): JValue
- def apply(path: JPath): JValue
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
breadthFirst: List[JValue]
Does a breadth-first traversal of all descendant JValues, beginning with this one.
-
def
children: Iterable[JValue]
Return direct child elements.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def delete(path: JPath): Option[JValue]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
filter(p: (JValue) ⇒ Boolean): List[JValue]
Return a List of all elements which matches the given predicate.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(p: (JValue) ⇒ Boolean): Option[JValue]
Return the first element from JSON which matches the given predicate.
- def flatten: List[JValue]
-
def
flattenWithPath: List[(JPath, JValue)]
Flattens the JValue down to a list of path to simple JValue primitive.
-
def
foldDown[A](z: A)(f: (A, JValue) ⇒ A): A
Return a combined value by folding over JSON by applying a function
ffor each element.Return a combined value by folding over JSON by applying a function
ffor each element. The initial value isz. -
def
foldDownWithPath[A](z: A)(f: (A, JPath, JValue) ⇒ A): A
Return a combined value by folding over JSON by applying a function
ffor each element, passing along the path to the elements.Return a combined value by folding over JSON by applying a function
ffor each element, passing along the path to the elements. The initial value isz. -
def
foldUp[A](z: A)(f: (A, JValue) ⇒ A): A
Return a combined value by folding over JSON by applying a function
ffor each element.Return a combined value by folding over JSON by applying a function
ffor each element. The initial value isz. -
def
foldUpWithPath[A](z: A)(f: (A, JPath, JValue) ⇒ A): A
Return a combined value by folding over JSON by applying a function
ffor each element, passing along the path to the elements.Return a combined value by folding over JSON by applying a function
ffor each element, passing along the path to the elements. The initial value isz. -
def
get(path: JPath): JValue
Gets the specified value located at the terminal of the specified path.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getOrElse(that: ⇒ JValue): JValue
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def insert(path: JPath, value: JValue): Validation[Throwable, JValue]
-
def
insertAll(other: JValue): ValidationNel[Throwable, JValue]
A safe merge function that ensures that values are not overwritten.
- def isDefined: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapDown(f: (JValue) ⇒ JValue): JValue
Return a new JValue resulting from applying the given function
fto each element, moving from the top-down. -
def
mapDownWithPath(f: (JPath, JValue) ⇒ JValue): JValue
Return a new JValue resulting from applying the given function
fto each element and its path, moving from the top-down. -
def
mapUp(f: (JValue) ⇒ JValue): JValue
Return a new JValue resulting from applying the given function
fto each element, moving from the bottom-up. -
def
mapUpWithPath(f: (JPath, JValue) ⇒ JValue): JValue
Return a new JValue resulting from applying the given function
fto each element and its path, moving from the bottom-up. -
def
minimize: Option[JValue]
Remove instances of Nothing from the data structure.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def normalize: JValue
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
remove(p: (JValue) ⇒ Boolean): JValue
Return a JSON where all elements matching the given predicate are removed.
- def renderCanonical: String
- def renderCompact: String
- def renderPretty: String
-
def
replace(target: JPath, replacement: JValue): JValue
A shorthand for the other replacement in the case that the replacement does not depend on the value being replaced.
-
def
replace(target: JPath, replacer: (JValue) ⇒ JValue): JValue
Replaces the matched path values with the result of calling the replacer function on the matches.
Replaces the matched path values with the result of calling the replacer function on the matches. If the path has no values, the method has no effect -- i.e. it is not an error to specify paths which do not exist.
- def set(path: JPath, value: JValue): JValue
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toOption: Option[JValue]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def to_s: String
-
def
transform(f: PartialFunction[JValue, JValue]): JValue
Return a new JValue resulting from applying the given partial function
fto each element in JSON. - def typeIndex: Int
- def unsafeInsert(rootPath: JPath, rootValue: JValue): JValue
-
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( ... )
- def withFilter(p: (JValue) ⇒ Boolean): List[JValue]