Diff

org.json4s.Diff
See theDiff companion class
object Diff

Computes a diff between two JSONs.

Attributes

Companion
class
Source
Diff.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Diff.type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def diff(val1: JValue, val2: JValue): Diff

Return a diff.

Return a diff.

Example:

val Diff(c, a, d) = ("name", "joe") ~ ("age", 10) diff ("fname", "joe") ~ ("age", 11)
c = JObject(("age",JInt(11)) :: Nil)
a = JObject(("fname",JString("joe")) :: Nil)
d = JObject(("name",JString("joe")) :: Nil)

Attributes

Source
Diff.scala