Skip to content

A class allowing the application of JSON Patch Documents corresponding to: draft-pbryan-json-patch-04 http://tools.ietf.org/html/draft-pbryan-json-patch-04 with the addition of 'value' in 'remove' operation and 'replacedValue' in 'replace' operation. These additions allow for both forward and reverse JSON patching.

Notifications You must be signed in to change notification settings

f3z0/JSONPatch.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 
::
:: Copyright (c) 2011 FeZo, Inc. A Delaware Corporation.
::  
:: Permission is hereby granted, free of charge, to any person obtaining a copy of this
:: software and associated documentation files (the "Software"), to deal in the Software
:: without restriction, including without limitation the rights to use, copy, modify, merge,
:: publish, distribute, sublicense, and/or sell copies of the Software, and to permit
:: persons to whom the Software is furnished to do so, subject to the following conditions:
::  
:: The above copyright notice and this permission notice shall be included in all copies
:: or substantial portions of the Software.
:: 
:: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
:: INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
:: PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
:: FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
:: OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
:: DEALINGS IN THE SOFTWARE.
::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::                                                                        
::   o .oPYo. .oPYo. o    o  .oPYo.          o         8          o        
::   8 8      8    8 8b   8  8    8          8         8                   
::   8 `Yooo. 8    8 8`b  8 o8YooP' .oPYo.  o8P .oPYo. 8oPYo.    o8 .oPYo. 
::   8     `8 8    8 8 `b 8  8      .oooo8   8  8    ' 8    8     8 Yb..   
::   8      8 8    8 8  `b8  8      8    8   8  8    . 8    8     8   'Yb. 
:: oP' `YooP' `YooP' 8   `8  8      `YooP8   8  `YooP' 8    8  @  8 `YooP' 
::...::.....::.....:..:::..:..::::::.....:::..::.....:..:::.....::8 :.....
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::oP ::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::..::::::::
::
:: 1) An implementation of http://tools.ietf.org/html/draft-pbryan-json-patch-04.
:: 
:: 2) Very necessary when you have a JSON document in two locations and you only want to sync using diffs.
:: 
:: 3) Supports bi-directional patching of JSON documents.
:: 
:: 4) Full patch generation support.
:: 
:: 5) Check out /doc/index.html for descriptions of all class functions.
:: 
:: 6) Check out /test/index.html for examples of how to use.
:: 
:: 7) New library needing some peer review love.
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::  
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 

About

A class allowing the application of JSON Patch Documents corresponding to: draft-pbryan-json-patch-04 http://tools.ietf.org/html/draft-pbryan-json-patch-04 with the addition of 'value' in 'remove' operation and 'replacedValue' in 'replace' operation. These additions allow for both forward and reverse JSON patching.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published