ujson
Complete and simple JSON reader and writer written in C
Data Fields
ujson_reader Struct Reference

A JSON parser internal state. More...

#include <ujson_reader.h>

Data Fields

const char * json
 
size_t len
 
size_t off
 
size_t sub_off
 
unsigned int depth
 
unsigned int max_depth
 
enum ujson_reader_flags flags
 
void(* err_print )(void *err_print_priv, const char *line)
 

Detailed Description

A JSON parser internal state.

Definition at line 50 of file ujson_reader.h.

Field Documentation

◆ depth

unsigned int ujson_reader::depth

Recursion depth increased when array/object is entered decreased on leave

Definition at line 60 of file ujson_reader.h.

◆ err_print

void(* ujson_reader::err_print) (void *err_print_priv, const char *line)

Handler to print errors and warnings

Definition at line 68 of file ujson_reader.h.

◆ flags

enum ujson_reader_flags ujson_reader::flags

Reader flags.

Definition at line 62 of file ujson_reader.h.

◆ json

const char* ujson_reader::json

Pointer to a null terminated JSON string

Definition at line 52 of file ujson_reader.h.

◆ len

size_t ujson_reader::len

A length of the JSON string

Definition at line 54 of file ujson_reader.h.

◆ max_depth

unsigned int ujson_reader::max_depth

Maximal recursion depth

Definition at line 62 of file ujson_reader.h.

◆ off

size_t ujson_reader::off

A current offset into the JSON string

Definition at line 56 of file ujson_reader.h.

◆ sub_off

size_t ujson_reader::sub_off

An offset to the start of the last array or object

Definition at line 58 of file ujson_reader.h.


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