fn stringifyMaxDepth(value: anytype, options: StringifyOptions, out_stream: anytype, comptime max_depth: ?usize) @TypeOf(out_stream).Error!void

Like stringify with configurable nesting depth. max_depth is rounded up to the nearest multiple of 8. Give null for max_depth to disable some safety checks and allow arbitrary nesting depth. See writeStreamMaxDepth for more info.

Parameters

value: anytype,
out_stream: anytype,
max_depth: ?usize,