VR-Vantage
Loading...
Searching...
No Matches
json.h File Reference

Go to the source code of this file.

Classes

struct  json_settings
struct  _json_value

Macros

#define json_char   char
#define json_int_t   int64_t
#define json_enable_comments   0x01
#define json_error_max   128

Typedefs

typedef struct _json_value json_value

Enumerations

enum  json_type {
  json_none , json_object , json_array , json_integer ,
  json_double , json_string , json_boolean , json_null
}

Functions

json_value * json_parse (const json_char *json, size_t length)
json_value * json_parse_ex (json_settings *settings, const json_char *json, size_t length, char *error)
void json_value_free (json_value *)
json_value * json_value_find (const json_value *parent, const char *name)
void json_value_free_ex (json_settings *settings, json_value *)

Variables

const struct _json_value json_value_none

Macro Definition Documentation

◆ json_char

#define json_char   char

Referenced by json_parse(), and json_parse_ex().

◆ json_int_t

#define json_int_t   int64_t

◆ json_enable_comments

#define json_enable_comments   0x01

◆ json_error_max

#define json_error_max   128

Typedef Documentation

◆ json_value

typedef struct _json_value json_value

Enumeration Type Documentation

◆ json_type

enum json_type
Enumerator
json_none 
json_object 
json_array 
json_integer 
json_double 
json_string 
json_boolean 
json_null 

Function Documentation

◆ json_parse()

json_value * json_parse ( const json_char * json,
size_t length )

References json_char.

◆ json_parse_ex()

json_value * json_parse_ex ( json_settings * settings,
const json_char * json,
size_t length,
char * error )

References json_char.

◆ json_value_free()

void json_value_free ( json_value * )

◆ json_value_find()

json_value * json_value_find ( const json_value * parent,
const char * name )

◆ json_value_free_ex()

void json_value_free_ex ( json_settings * settings,
json_value *  )

Variable Documentation

◆ json_value_none

const struct _json_value json_value_none
extern