<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _write_json(obj, path):
 # type: (object, str) -> None """Writes a serializeable object as a JSON file"""

    with open(path, 'w') as f:
        json.dump(obj, f)