<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_json(self, *args, **kwargs):
 """ Generate a schema and convert it directly to serialized JSON. :rtype: ``str`` """

        return json.dumps(self.to_schema(), *args, **kwargs)