<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def JSONObjectReader(registry, fi, deref=False):
 """Stream objects from a JSON file. :param registry: serialisation registry. :param fi: input file :param deref: flag, if True, objects will be dereferenced on decoding, otherwise we are lazy about decoding a JSON string. """

    for line in fi:
        yield registry.from_json(line, deref=deref)