Function JSONToken.kind

Gets/sets the kind of the represented token.

Kind kind () const pure nothrow @nogc @property;

Kind kind (
  Kind value
) nothrow @nogc @property;

Setting the token kind is not allowed for any of the kinds that have additional data associated (boolean, number and string).