C# Class JsonDiffPatchDotNet.JsonDiffPatch

Afficher le fichier Open project: wbish/jsondiffpatch.net

Méthodes publiques

Méthode Description
Diff ( JToken left, JToken right ) : JToken

Diff two JSON objects. The output is a JObject that contains enough information to represent the delta between the two objects and to be able perform patch and reverse operations.

Diff ( string left, string right ) : string

Diff two JSON objects. The output is a JObject that contains enough information to represent the delta between the two objects and to be able perform patch and reverse operations.

JsonDiffPatch ( ) : System
JsonDiffPatch ( Options options ) : System
Patch ( JToken left, JToken patch ) : JToken

Patch a JSON object

Patch ( string left, string patch ) : string

Patch a JSON object

Unpatch ( JToken right, JToken patch ) : JToken

Unpatch a JSON object

Unpatch ( string right, string patch ) : string

Unpatch a JSON object

Private Methods

Méthode Description
ArrayDiff ( Newtonsoft.Json.Linq.JArray left, Newtonsoft.Json.Linq.JArray right ) : Newtonsoft.Json.Linq.JObject
ArrayPatch ( Newtonsoft.Json.Linq.JArray left, Newtonsoft.Json.Linq.JObject patch ) : Newtonsoft.Json.Linq.JArray
ArrayUnpatch ( Newtonsoft.Json.Linq.JArray right, Newtonsoft.Json.Linq.JObject patch ) : Newtonsoft.Json.Linq.JArray
ObjectDiff ( Newtonsoft.Json.Linq.JObject left, Newtonsoft.Json.Linq.JObject right ) : Newtonsoft.Json.Linq.JObject
ObjectPatch ( Newtonsoft.Json.Linq.JObject obj, Newtonsoft.Json.Linq.JObject patch ) : Newtonsoft.Json.Linq.JObject
ObjectUnpatch ( Newtonsoft.Json.Linq.JObject obj, Newtonsoft.Json.Linq.JObject patch ) : Newtonsoft.Json.Linq.JObject

Method Details

Diff() public méthode

Diff two JSON objects. The output is a JObject that contains enough information to represent the delta between the two objects and to be able perform patch and reverse operations.
public Diff ( JToken left, JToken right ) : JToken
left JToken The base JSON object
right JToken The JSON object to compare against the base
Résultat JToken

Diff() public méthode

Diff two JSON objects. The output is a JObject that contains enough information to represent the delta between the two objects and to be able perform patch and reverse operations.
public Diff ( string left, string right ) : string
left string The base JSON object
right string The JSON object to compare against the base
Résultat string

JsonDiffPatch() public méthode

public JsonDiffPatch ( ) : System
Résultat System

JsonDiffPatch() public méthode

public JsonDiffPatch ( Options options ) : System
options Options
Résultat System

Patch() public méthode

Patch a JSON object
Thrown if the patch document is invalid
public Patch ( JToken left, JToken patch ) : JToken
left JToken Unpatched JSON object
patch JToken JSON Patch Document
Résultat JToken

Patch() public méthode

Patch a JSON object
Thrown if the patch document is invalid
public Patch ( string left, string patch ) : string
left string Unpatched JSON object
patch string JSON Patch Document
Résultat string

Unpatch() public méthode

Unpatch a JSON object
Thrown if the patch document is invalid
public Unpatch ( JToken right, JToken patch ) : JToken
right JToken Patched JSON object
patch JToken JSON Patch Document
Résultat JToken

Unpatch() public méthode

Unpatch a JSON object
Thrown if the patch document is invalid
public Unpatch ( string right, string patch ) : string
right string Patched JSON object
patch string JSON Patch Document
Résultat string