<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dumps(obj):
 """Outputs json with formatting edits + object handling."""

    return json.dumps(obj, indent=4, sort_keys=True, cls=CustomEncoder)