fn nextAlloc(self: *@This(), allocator: Allocator, when: AllocWhen) AllocError!Token

Equivalent to nextAllocMax(allocator, when, default_max_value_len); This function is only available after endInput() (or initCompleteInput()) has been called. See also std.json.Token for documentation of nextAlloc*() function behavior.

Parameters

self: *@This(),
allocator: Allocator,
when: AllocWhen,