<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _serialize_json(obj, fp):
 """ Serialize ``obj`` as a JSON formatted stream to ``fp`` """

    json.dump(obj, fp, indent=4, default=serialize)