Stringify
Fields of this type
Fields
- writer:*Writer
- indent_level:usize
- = 0
- next_punctuation:enum { the_beginning, none, comma, colon, }
- = .the_beginning
- nesting_stack:switch (safety_checks) { .checked_to_fixed_depth => |fixed_buffer_size| [(fixed_buffer_size + 7) >> 3]u8, .assumed_correct => void, }
- = switch (safety_checks) { .checked_to_fixed_depth => @splat(0), .assumed_correct => {}, }
- raw_streaming_mode:if (build_mode_has_safety) enum { none, value, objectField } else void
- = if (build_mode_has_safety) .none else {}
Type definitions in this namespace
Types
Functions in this namespace
Functions
- An alternative to calling `write` that formats a value with `std.fmt`.
- beginWriteRaw
- An alternative to calling `write` that allows you to write directly to the `.writer` field, e.g.
- endWriteRaw
- See `beginWriteRaw`.
- objectField
- See `Stringify` for when to call this method.
- objectFieldRaw
- See `Stringify` for when to call this method.
- beginObjectFieldRaw
- In the rare case that you need to write very long object field names,
- endObjectFieldRaw
- See `beginObjectFieldRaw`.
- write
- Renders the given Zig value as JSON.
- value
- Writes the given value to the `Writer` writer.
- valueAlloc
- Calls `value` and stores the result in dynamically allocated memory instead
- encodeJsonString
- Write `string` to `writer` as a JSON encoded string.
- encodeJsonStringChars
- Write `chars` to `writer` as JSON encoded string characters.
Error sets in this namespace