json_reader holds pointers to output and error handlers rather than references