Moved input stream parameter from constructor to read method in json_reader