'Encodes the block key before accessing it in the structure to ensure it can
be a json dict key.'

@contract(block_key=BlockKey, content=BlockData)
def _update_block_in_structure(self, structure, block_key, content):

    structure['blocks'][block_key] = content
