Skip to content

wescules/diff3-json-merge-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diff3-json-merge-algorithm

Get diff of 2 json objects: getDifferences(String documentToUpdate, String currentDocument)

Get the merged json object: merge(String sourceDocument, String currentDocument, String newDocument)

This json merge algorthim uses the diff3 merging strategy which uses the diff between source and published as well as source and new to generate the final json. The Source json is a common ancestor of the new(latest changes) and the published (whats currently in storage) json.

Releases

No releases published

Packages

No packages published

Languages