requireToken

inline fun <TExpected> requireToken(token: JsonToken)

Require that the given token be of type TExpected or else throw an exception