Property | Type | Description | |
---|---|---|---|
IJsonPatchDocument | IList |
Method | Description | |
---|---|---|
Add ( string path, object value ) : |
Add operation. Will result in, for example, { "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }
|
|
ApplyTo ( object objectToApplyTo ) : void |
Apply this JsonPatchDocument
|
|
ApplyTo ( object objectToApplyTo, Action |
Apply this JsonPatchDocument
|
|
ApplyTo ( object objectToApplyTo, IObjectAdapter adapter ) : void |
Apply this JsonPatchDocument
|
|
Copy ( string from, string path ) : |
Copy the value at specified location to the target location. Willr esult in, for example: { "op": "copy", "from": "/a/b/c", "path": "/a/b/e" }
|
|
JsonPatchDocument ( ) : System | ||
JsonPatchDocument ( List |
||
Move ( string from, string path ) : |
Removes value at specified location and add it to the target location. Will result in, for example: { "op": "move", "from": "/a/b/c", "path": "/a/b/d" }
|
|
Remove ( string path ) : JsonPatchDocument |
Remove value at target location. Will result in, for example, { "op": "remove", "path": "/a/b/c" }
|
|
Replace ( string path, object value ) : JsonPatchDocument |
Replace value. Will result in, for example, { "op": "replace", "path": "/a/b/c", "value": 42 }
|
Method | Description | |
---|---|---|
IJsonPatchDocument ( ) : IList |
public Add ( string path, object value ) : |
||
path | string | target location |
value | object | value |
return |
public ApplyTo ( object objectToApplyTo ) : void | ||
objectToApplyTo | object | Object to apply the JsonPatchDocument to |
return | void |
public ApplyTo ( object objectToApplyTo, Action |
||
objectToApplyTo | object | Object to apply the JsonPatchDocument to |
logErrorAction | Action |
Action to log errors |
return | void |
public ApplyTo ( object objectToApplyTo, IObjectAdapter adapter ) : void | ||
objectToApplyTo | object | Object to apply the JsonPatchDocument to |
adapter | IObjectAdapter | IObjectAdapter instance to use when applying |
return | void |
public Copy ( string from, string path ) : |
||
from | string | source location |
path | string | target location |
return |
public JsonPatchDocument ( List |
||
operations | List |
|
contractResolver | IContractResolver | |
return | System |
public Move ( string from, string path ) : |
||
from | string | source location |
path | string | target location |
return |
public Remove ( string path ) : JsonPatchDocument | ||
path | string | target location |
return | JsonPatchDocument |
public Replace ( string path, object value ) : JsonPatchDocument | ||
path | string | target location |
value | object | value |
return | JsonPatchDocument |