Rewrite startElement() to no use json_reader_read_element().