Docs

stringify

Signature #1

Stringify a JSON object and convert all bigint values to string

Example

import { stringify } from "thirdweb/utils";
const obj = { tokenId: 0n };
const str = stringify(obj); // "{"tokenId":"0"}"

Parameters

Returns

Signature #2

Stringify a JSON object and convert all bigint values to string

Example

import { stringify } from "thirdweb/utils";
const obj = { tokenId: 0n };
const str = stringify(obj); // "{"tokenId":"0"}"

Parameters

Returns