deal with blanks in json
rename next_char -> nextChar