<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read_json(fn):
 """Convenience method to read pyquil.operator_estimation objects from a JSON file. See :py:func:`to_json`. """

    with open(fn) as f:
        return json.load(f, object_hook=_operator_object_hook)