fn stringifyAlloc(allocator: Allocator, value: anytype, options: StringifyOptions) error{OutOfMemory}![]const u8

Calls stringifyArbitraryDepth and stores the result in dynamically allocated memory instead of taking a std.io.Writer.

Caller owns returned memory.

Parameters

allocator: Allocator,
value: anytype,