Proposal:
The datacontentencoding should list all the transformations that were applied to the content that is wrapped by the data property.
For example:
In the case that we're compressing and encrypting the content wrapped by the data property, we should be listing in the datacontentencoding property such transformations in the order they were applied to the data.
{
...
"datacontentencoding" : "gzip; aesgcm"
...
}
Clients will be able to reconstitute the data by applying the same transformations in the reverse order.
Another nice change would be to change the datacontentencoding from a String to a JSON array to simplified its parsing.
"datacontentencoding" : "gzip; aesgcm" vs "datacontentencoding" : ["gzip", aesgcm"]
Thanks.