Function JsonLexer.expectToken

Test that a token type is present, and throw an error if not.

void expectToken (
  Token tk
);