Convert this class to JSON form.
The class type is not recorded in the JSON so the JSON decoder
must know which class is represented.
- Parameters:
 
- minimal
bool, optional Use minimal serialization. Requires Registry to convert
back to a full type.
 
 
- Returns:
 
- json
str The class in JSON string format.