The value to serialize.
Optionalreplacer: JsonReplacerA function that transforms the result
Optionaloptions: JsonMakeAllReplacersFunctionOptionsOptions to customize the behavior of the serialization, such as handling circular references.
A JSON representation of the value, or undefined if a "pure" value has been passed in argument.
Serialize a value to a JSON-compatible format.
The function follows the same rules as
JSON.stringify, but instead of returning a string, it returns the serialized value directly.