<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def post_json(session, url, json):
 """ Post JSON to the Forest endpoint. """

    res = session.post(url, json=json)
    if res.status_code >= 400:
        raise parse_error(res)
    return res