Added error_handler for json_reader