union Token [src]
Alias for std.json.scanner.Token
The tokens emitted by std.json.Scanner and std.json.Reader .next*() functions follow this grammar:
= .end_of_document
=
| Fields
object_begin
object_end
array_begin
array_end
true
false
null
number: []const u8
partial_number: []const u8
allocated_number: []u8
string: []const u8
partial_string: []const u8
partial_string_escaped_1: [1]u8
partial_string_escaped_2: [2]u8
partial_string_escaped_3: [3]u8
partial_string_escaped_4: [4]u8
allocated_string: []u8
end_of_document
Source
pub const Token = union(enum) {
object_begin,
object_end,
array_begin,
array_end,
true,
false,
null,
number: []const u8,
partial_number: []const u8,
allocated_number: []u8,
string: []const u8,
partial_string: []const u8,
partial_string_escaped_1: [1]u8,
partial_string_escaped_2: [2]u8,
partial_string_escaped_3: [3]u8,
partial_string_escaped_4: [4]u8,
allocated_string: []u8,
end_of_document,
}