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: JsValue) 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 DiffsonException extends Exception

  4. class DynamicProgLcs[T] extends Lcs[T]

    Implementation of the LCS using dynamic programming.

  5. class FormatException extends DiffsonException

  6. class JsonDiff extends AnyRef

    Methods to compute diffs between two Json values

  7. final case class JsonPatch(ops: List[Operation])(implicit pointer: JsonPointer) extends Product with Serializable

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

  8. class JsonPointer extends AnyRef

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

  9. trait Lcs[T] extends AnyRef

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

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

    Move the pointed element to the new position

  11. sealed abstract class Operation extends AnyRef

    A patch operation to apply to a Json value

  12. class PatchException extends DiffsonException

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

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

  14. type Pointer = List[String]

  15. type PointerErrorHandler = PartialFunction[(JsValue, String, Pointer), JsValue]

  16. class PointerException extends DiffsonException

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

    Remove the pointed element

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

    Replace the pointed element by the given value

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

    Test that the pointed element is equal to the given value

Value Members

  1. object DiffsonProtocol extends DefaultJsonProtocol

  2. object IntIndex

  3. object JsonDiff extends JsonDiff

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

  4. object JsonPatch extends Serializable

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

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

  6. implicit val pointer: JsonPointer

  7. def pointerString(path: Pointer): String

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

Inherited from AnyRef

Inherited from Any

Ungrouped