gnieh

diffson

package diffson

This package contains an implementation of Json JsonPatch, according to [RFC-6902](http://tools.ietf.org/html/rfc6902)

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. diffson
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final case class Add(path: Pointer, value: JValue) extends Operation with Product with Serializable

    Add (or replace if existing) the pointed element

  2. final case class Copy(from: Pointer, path: Pointer) extends Operation with Product with Serializable

    Copy the pointed element to the new position

  3. class JsonDiff extends AnyRef

    Methods to compute diffs between two Json values

  4. final case class JsonPatch(ops: List[Operation]) extends Product with Serializable

    A Json patch object according to http://tools.

  5. class JsonPointer extends AnyRef

    A class to work with Json pointers according to http://tools.

  6. trait Lcs[T] extends AnyRef

    The interface to classes that computes the longest common subsequence between two sequences of elements

  7. final case class Move(from: Pointer, path: Pointer) extends Operation with Product with Serializable

    Move the pointed element to the new position

  8. sealed abstract class Operation extends AnyRef

    A patch operation to apply to a Json value

  9. class PatchException extends Exception

    Thrown whenever a problem is encountered when applying a patch

  10. class Patience[T] extends Lcs[T]

    Implementation of the patience algorithm [1] to compute the longest common subsequence

  11. type Pointer = List[String]

  12. class PointerException extends Exception

    Thrown whenever a problem is encountered when parsing or evaluating a Json Pointer

  13. final case class Remove(path: Pointer) extends Operation with Product with Serializable

    Remove the pointed element

  14. final case class Replace(path: Pointer, value: JValue) extends Operation with Product with Serializable

    Replace the pointed element by the given value

  15. final case class Test(path: Pointer, value: JValue) extends Operation with Product with Serializable

    Test that the pointed element is equal to the given value

Value Members

  1. object IntIndex

  2. object JsonDiff extends JsonDiff

    Default JsonDiff instance that uses the patience algorithm to compute lcs for arrays

  3. object JsonPatch extends Serializable

    JsonPatch companion object allowing to create JsonPatch objects from strings or operations.

  4. object JsonPatchSerializer extends Serializer[JsonPatch]

  5. object JsonPointer extends JsonPointer

    Default JsonPointer instance that throws an exception for each invalid or inexistent pointer

  6. implicit def i2path(i: Int): List[String]

  7. val nothingHandler: PartialFunction[(JValue, String), JValue]

  8. val pointer: JsonPointer

  9. def pointerString(path: Pointer): String

  10. implicit def s2path(s: String): List[String]

Inherited from AnyRef

Inherited from Any

Ungrouped