pub fn parseFromSliceLeaky(
comptime T: type,
allocator: Allocator,
s: []const u8,
options: ParseOptions,
) ParseError(Scanner)!T T: typeallocator: Allocators: []const u8options: ParseOptions89
90
91
92
93
94
95
96
97
98
99pub fn parseFromSliceLeaky(
comptime T: type,
allocator: Allocator,
s: []const u8,
options: ParseOptions,
) ParseError(Scanner)!T {
var scanner = Scanner.initCompleteInput(allocator, s);
defer scanner.deinit();
return parseFromTokenSourceLeaky(T, allocator, &scanner, options);
}
Parses the json document from
sand returns the result. Allocations made during this operation are not carefully tracked and may not be possible to individually clean up. It is recommended to use astd.heap.ArenaAllocatoror similar.