GameDB  1.6.0
GameDB Pro is a plugin that provides an easy to use and powerful game and meta data editor
GameDBLibrary.JsonPatch Class Reference

Implements the json patch spec at http://jsonpatch.com/ and passes all tests https://github.com/json-patch/json-patch-tests/blob/master/spec_tests.json Allows applying a json patch to a json string. More...

Public Member Functions

string Patch (string originalJson, string patchJson)
 Patches the specified original json. More...
 

Detailed Description

Implements the json patch spec at http://jsonpatch.com/ and passes all tests https://github.com/json-patch/json-patch-tests/blob/master/spec_tests.json Allows applying a json patch to a json string.

Member Function Documentation

◆ Patch()

string GameDBLibrary.JsonPatch.Patch ( string  originalJson,
string  patchJson 
)

Patches the specified original json.

Parameters
originalJsonThe original json.
patchJsonThe patch json.
Returns
The patched json string
Exceptions
System.FormatException
System.ArgumentException