The object to serialize.
Optional replacer: DebuggerClientCycleReplacerA function called for each property on the object or array being stringified, with the property key and its value, and that returns the new value. If not specified, values are not altered.
Optional maxDepth: numberThe maximum depth, after which values are replaced by a string ("[Max depth reached]"). If not specified, there is no maximum depth.
Optional spaces: numberThe number of spaces for indentation.
Optional cycleReplacer: DebuggerClientCycleReplacerFunction used to replace circular references with a new value.
This is an alternative to JSON.stringify that ensure that circular references are replaced by a placeholder.