JsonDiffer

zio.blocks.schema.json.JsonDiffer
object JsonDiffer

Computes differences between Json values, producing JsonPatch instances that can transform one JSON value into another.

Attributes

Source
JsonDiffer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
JsonDiffer.type

Members list

Value members

Concrete methods

def diff(source: Json, target: Json): JsonPatch

Compute the diff between two Json values.

Compute the diff between two Json values.

Value parameters

source

The original Json value

target

The desired Json value

Attributes

Returns

A JsonPatch that transforms source into target

Source
JsonDiffer.scala