Generates the JSON.
protected virtual string? GenerateJson()
The JSON.
Used by derived classes that generate the JSON just in time.