C# 클래스 JsonDiffPatchDotNet.JsonDiffPatch

파일 보기 프로젝트 열기: wbish/jsondiffpatch.net

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Diff() 공개 메소드

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
리턴 JToken

Diff() 공개 메소드

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
리턴 string

JsonDiffPatch() 공개 메소드

public JsonDiffPatch ( ) : System
리턴 System

JsonDiffPatch() 공개 메소드

public JsonDiffPatch ( Options options ) : System
options Options
리턴 System

Patch() 공개 메소드

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
리턴 JToken

Patch() 공개 메소드

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
리턴 string

Unpatch() 공개 메소드

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
리턴 JToken

Unpatch() 공개 메소드

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
리턴 string