tough-cookie.cookie.tojson.md

May 3, 2024 ยท View on GitHub

Home > tough-cookie > Cookie > toJSON

Cookie.toJSON() method

For convenience in using JSON.stringify(cookie). Returns a plain-old Object that can be JSON-serialized.

Signature:

toJSON(): SerializedCookie;

Returns:

SerializedCookie

Remarks