Skip to content

Struct SYN_JsonWriter

ClassList > SYN_JsonWriter

Streaming JSON writer — tracks nesting, commas, and overflow.

  • #include <syn_json_write.h>

Public Attributes

Type Name
char * buf
size_t capacity
uint8_t depth
size_t len
bool needs_comma
bool overflow

Public Attributes Documentation

variable buf

char* SYN_JsonWriter::buf;

Output buffer


variable capacity

size_t SYN_JsonWriter::capacity;

Buffer capacity


variable depth

uint8_t SYN_JsonWriter::depth;

Current nesting depth


variable len

size_t SYN_JsonWriter::len;

Bytes written so far


variable needs_comma

bool SYN_JsonWriter::needs_comma;

Insert comma before next element


variable overflow

bool SYN_JsonWriter::overflow;

Set if buffer overflowed



The documentation for this class was generated from the following file src/syntropic/util/syn_json_write.h