Wireshark 4.7.2
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
json_dumper Struct Reference

State and configuration for incrementally writing JSON output to a file or string. More...

#include <json_dumper.h>

Public Attributes

FILE * output_file
GString * output_string
int flags
unsigned current_depth
int base64_state
int base64_save
uint8_t state [1100]
char buf [8192]
size_t buf_pos

Detailed Description

State and configuration for incrementally writing JSON output to a file or string.

Member Data Documentation

◆ base64_save

int json_dumper::base64_save

Partially accumulated bits carried over between incremental base64 encoding calls.

◆ base64_state

int json_dumper::base64_state

Incremental base64 encoder state used when streaming binary data.

◆ buf

char json_dumper::buf[8192]

Internal buffer to batch small writes.

◆ buf_pos

size_t json_dumper::buf_pos

Current position in internal buffer.

◆ current_depth

unsigned json_dumper::current_depth

Current nesting depth of open objects and arrays.

◆ flags

int json_dumper::flags

Bitmask of JSON_DUMPER_* flags controlling output formatting and error handling behaviour.

◆ output_file

FILE* json_dumper::output_file

Output file handle; if non-NULL, JSON is written here.

◆ output_string

GString* json_dumper::output_string

Output GLib string buffer; if non-NULL, JSON is appended here.

◆ state

uint8_t json_dumper::state[1100]

Per-depth state flags tracking whether a separator is needed before the next value.


The documentation for this struct was generated from the following file: