We have two environments, A and B, for the same set of applications.
Environment A's changes (mainly modifications to JSON files storing the applications' configurations) are wholly managed by Puppet. Part of these changes need to be applied on Environment B, where no Puppet runs, by editing the JSON files by hand.
We cannot simply copy these config files from A to B, because on A the files are also modified by other Puppet modules which must not run on B.
Basically the problem here is to extract changes to JSON files made by a specific Puppet run in A, and apply them to B. Running a simple diff won't work as objects in JSON are unordered. I was therefore thinking of sorting the objects before comparing them (related question: How to compare two JSON objects with the same elements in a different order equal?). Are there other simpler options?