Diff

object Diff

Computes a diff between two JSONs.

Computes a diff between two JSONs.

Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

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)