User:Grondilu/JSON and CC-BY-SA

CC-BY-SA and JSON
Say you have a CC-BY-SA compatible JSON that looks like this :

And say John Smith want to change the 'TEXT' field into something like :

"This is my message for posterity, and I'm proud of it !"

Then he can't just replace the JSON object by this one :

Because if he does so, as soon as he will publish it, he will be in violation of CC-BY-SA.

Therefore the juridicaly safe way to modify it is to enclose the old document in a new JSON :

Later on, if John Carter wants to modify the document too, he will enclose the whole thing :

This might be considered as a waste of storage space, but it's the price to pay in order to stay CC-BY-SA compliant.

Also, in order to spare some storage space, one might consider using a diff util, as long as the original document is not modified. But in that case, the gain in storage space will be balanced by the waste of copmuting resource, since a lot of successive diffs must be exectuded in order to visualize the final TEXT field.