Integrated diff generator by Ian Mercer (http://blog.abodit.com/2014/05/json-patch-c-implementation/)