Token.toJSON() method

Returns a simplified version of this token as a JSON blob

Signature:

toJSON(): object;

Returns:

object

Remarks

This helps JSON loggers deal with tokens because the only property is a symbol so tokens would show up all tokens as {}.