Fix JSON persistence attriute syntax in predefine Registry entries.
Improved error handling when the attribute values of Registry entries
are not encoded as valid JSON. When detected, the attribute value is
replaced by an error encoded in a JSON object.