This PR attempts to clean up the JSON Production and Consumption section in a way that enables the data model to be serialized for data structures other than a DID Document (to align it with the Resolution serialization requirements), while keeping the DID Document serialization rules more or less the same. There was wierdness related to tying the resolution section in normatively to the production/consumption rules, which really should be done higher up in the stack. I'm marking it as substantive because, while I'm fairly certain implementations wouldn't be affected by the changes, normative language was changed/merged/removed.
Substantive, multiple reviews, changes requested and made, objection raised by @peacekeeper and addressed via specification text change, no sustained objections, merging.
This PR attempts to clean up the JSON Production and Consumption section in a way that enables the data model to be serialized for data structures other than a DID Document (to align it with the Resolution serialization requirements), while keeping the DID Document serialization rules more or less the same. There was wierdness related to tying the resolution section in normatively to the production/consumption rules, which really should be done higher up in the stack. I'm marking it as substantive because, while I'm fairly certain implementations wouldn't be affected by the changes, normative language was changed/merged/removed.
Preview | Diff