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:
- 
- minimalbool, optional
- Use minimal serialization. Requires Registry to convert
back to a full type. 
 
- Returns:
- 
- jsonstr
- The class in JSON string format.