implicit class JValueOps extends AnyRef

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JValueOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JValueOps(self: JValue)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++(other: JValue): JValue

    Concatenate with another JSON.

    Concatenate with another JSON. This is a concatenation monoid: (JValue, ++, JUndefined)

  4. def -->[A <: JValue](clazz: Class[A]): A

    Returns the element as a JValue of the specified class.

  5. def -->?[A <: JValue](clazz: Class[A]): Option[A]

    Returns the element as an option of a JValue of the specified class.

  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. 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.

  8. def \?(nameToFind: String): Option[JValue]
  9. 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.

  10. def apply(i: Int): JValue

    Return nth element from JSON Array.

  11. def apply(node: JPathNode): JValue
  12. def apply(path: JPath): JValue
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def breadthFirst: List[JValue]

    Does a breadth-first traversal of all descendant JValues, beginning with this one.

  15. def children: Iterable[JValue]

    Return direct child elements.

  16. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  17. def delete(path: JPath): Option[JValue]
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def filter(p: (JValue) ⇒ Boolean): List[JValue]

    Return a List of all elements which matches the given predicate.

  21. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def find(p: (JValue) ⇒ Boolean): Option[JValue]

    Return the first element from JSON which matches the given predicate.

  23. def flatten: List[JValue]
  24. def flattenWithPath: List[(JPath, JValue)]

    Flattens the JValue down to a list of path to simple JValue primitive.

  25. def foldDown[A](z: A)(f: (A, JValue) ⇒ A): A

    Return a combined value by folding over JSON by applying a function f for each element.

    Return a combined value by folding over JSON by applying a function f for each element. The initial value is z.

  26. def foldDownWithPath[A](z: A)(f: (A, JPath, JValue) ⇒ A): A

    Return a combined value by folding over JSON by applying a function f for each element, passing along the path to the elements.

    Return a combined value by folding over JSON by applying a function f for each element, passing along the path to the elements. The initial value is z.

  27. def foldUp[A](z: A)(f: (A, JValue) ⇒ A): A

    Return a combined value by folding over JSON by applying a function f for each element.

    Return a combined value by folding over JSON by applying a function f for each element. The initial value is z.

  28. def foldUpWithPath[A](z: A)(f: (A, JPath, JValue) ⇒ A): A

    Return a combined value by folding over JSON by applying a function f for each element, passing along the path to the elements.

    Return a combined value by folding over JSON by applying a function f for each element, passing along the path to the elements. The initial value is z.

  29. def get(path: JPath): JValue

    Gets the specified value located at the terminal of the specified path.

  30. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. def getOrElse(that: ⇒ JValue): JValue
  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. def insert(path: JPath, value: JValue): Validation[Throwable, JValue]
  34. def insertAll(other: JValue): ValidationNel[Throwable, JValue]

    A safe merge function that ensures that values are not overwritten.

  35. def isDefined: Boolean
  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. def mapDown(f: (JValue) ⇒ JValue): JValue

    Return a new JValue resulting from applying the given function f to each element, moving from the top-down.

  38. def mapDownWithPath(f: (JPath, JValue) ⇒ JValue): JValue

    Return a new JValue resulting from applying the given function f to each element and its path, moving from the top-down.

  39. def mapUp(f: (JValue) ⇒ JValue): JValue

    Return a new JValue resulting from applying the given function f to each element, moving from the bottom-up.

  40. def mapUpWithPath(f: (JPath, JValue) ⇒ JValue): JValue

    Return a new JValue resulting from applying the given function f to each element and its path, moving from the bottom-up.

  41. def minimize: Option[JValue]

    Remove instances of Nothing from the data structure.

  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. def normalize: JValue
  44. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  46. def remove(p: (JValue) ⇒ Boolean): JValue

    Return a JSON where all elements matching the given predicate are removed.

  47. def renderCanonical: String
  48. def renderCompact: String
  49. def renderPretty: String
  50. 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.

  51. 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.

  52. def set(path: JPath, value: JValue): JValue
  53. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  54. def toOption: Option[JValue]
  55. def toString(): String
    Definition Classes
    AnyRef → Any
  56. def to_s: String
  57. def transform(f: PartialFunction[JValue, JValue]): JValue

    Return a new JValue resulting from applying the given partial function f to each element in JSON.

  58. def typeIndex: Int
  59. def unsafeInsert(rootPath: JPath, rootValue: JValue): JValue
  60. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  63. def withFilter(p: (JValue) ⇒ Boolean): List[JValue]

Inherited from AnyRef

Inherited from Any

Ungrouped