std.json.AllocWhen
- Kind
- type
- Module
std.json
Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The entries of std.json in the Zig reference. This page has 31 cards.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn ArrayHashMap(comptime T: type) type
A thin wrapper around `std.array_hash_map.String` that implements `jsonParse`, `jsonParseFromValue`, and `jsonStringify`.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn fmt(value: anytype, options: Stringify.Options) Formatter(@TypeOf(value))
Returns a formatter that formats the given value using stringify.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn Formatter(comptime T: type) type
Formats the given value using stringify.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn format(self: @This(), writer: *std.Io.Writer) std.Io.Writer.Error!void
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn innerParse(comptime T: type, allocator: Allocator, source: anytype, options: ParseOptions) ParseError(@TypeOf(source.*))!T
This is an internal function called recursively during the implementation of `parseFromTokenSourceLeaky` and similar.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn innerParseFromValue(comptime T: type, allocator: Allocator, source: Value, options: ParseOptions) ParseFromValueError!T
This is an internal function called recursively during the implementation of `parseFromValueLeaky`.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn Parsed(comptime T: type) type
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn ParseError(comptime Source: type) type
The error set that will be returned when parsing from `*Source`.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn parseFromSlice(comptime T: type, allocator: Allocator, s: []const u8, options: ParseOptions) ParseError(Scanner)!Parsed(T)
Parses the json document from `s` and returns the result packaged in a `std.json.Parsed`.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn parseFromSliceLeaky(comptime T: type, allocator: Allocator, s: []const u8, options: ParseOptions) ParseError(Scanner)!T
Parses the json document from `s` and returns the result.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn parseFromTokenSource(comptime T: type, allocator: Allocator, scanner_or_reader: anytype, options: ParseOptions) ParseError(@TypeOf(scanner_or_reader.*))!Parsed(T)
`scanner_or_reader` must be either a `*std.json.Scanner` with complete input or a `*std.json.Reader`.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn parseFromTokenSourceLeaky(comptime T: type, allocator: Allocator, scanner_or_reader: anytype, options: ParseOptions) ParseError(@TypeOf(scanner_or_reader.*))!T
`scanner_or_reader` must be either a `*std.json.Scanner` with complete input or a `*std.json.Reader`.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn parseFromValue(comptime T: type, allocator: Allocator, source: Value, options: ParseOptions) ParseFromValueError!Parsed(T)
Like `parseFromSlice`, but the input is an already-parsed `std.json.Value` object.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn parseFromValueLeaky(comptime T: type, allocator: Allocator, source: Value, options: ParseOptions) ParseFromValueError!T
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Controls how to deal with various inconsistencies between the JSON document and the Zig struct type passed in.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Represents any JSON value, potentially containing other JSON values.
std.jsonSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.