The value to stringify.
Optional
replacer: JsonReplacerA function that alters the behavior of the stringification process, or an array of String and Number objects that serve as a whitelist for selecting/filtering the properties of the value object to be included in the JSON string. If this value is null or not provided, all properties of the object are included in the resulting JSON string.
Optional
space: string | numberThe number of spaces to use for indentation or a string to use as whitespace.
A JSON string representation of the value, or undefined if the value cannot be stringified.
Stringifies a value to JSON, handling circular references, Error objects, and BigInt values.