json-lexer: reset the lexer state on an invalid token