implement optional lookahead in json lexer