GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-55b2a2bccc
parson.h File Reference
#include <stddef.h>
Include dependency graph for parson.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PARSON_VERSION_MAJOR   1
 
#define PARSON_VERSION_MINOR   5
 
#define PARSON_VERSION_PATCH   3
 
#define PARSON_VERSION_STRING   "1.5.3"
 

Typedefs

typedef struct json_object_t JSON_Object
 
typedef struct json_array_t JSON_Array
 
typedef struct json_value_t JSON_Value
 
typedef int JSON_Value_Type
 
typedef int JSON_Status
 
typedef void *(* JSON_Malloc_Function) (size_t)
 
typedef void(* JSON_Free_Function) (void *)
 
typedef int(* JSON_Number_Serialization_Function) (double num, char *buf)
 

Enumerations

enum  json_value_type {
  JSONError = -1 , JSONNull = 1 , JSONString = 2 , JSONNumber = 3 ,
  JSONObject = 4 , JSONArray = 5 , JSONBoolean = 6
}
 
enum  json_result_t { JSONSuccess = 0 , JSONFailure = -1 }
 

Functions

void json_set_allocation_functions (JSON_Malloc_Function malloc_fun, JSON_Free_Function free_fun)
 
void json_set_escape_slashes (int escape_slashes)
 
void json_set_float_serialization_format (const char *format)
 
void json_set_number_serialization_function (JSON_Number_Serialization_Function fun)
 
JSON_Valuejson_parse_file (const char *filename)
 
JSON_Valuejson_parse_file_with_comments (const char *filename)
 
JSON_Valuejson_parse_string (const char *string)
 
JSON_Valuejson_parse_string_with_comments (const char *string)
 
size_t json_serialization_size (const JSON_Value *value)
 
JSON_Status json_serialize_to_buffer (const JSON_Value *value, char *buf, size_t buf_size_in_bytes)
 
JSON_Status json_serialize_to_file (const JSON_Value *value, const char *filename)
 
char * json_serialize_to_string (const JSON_Value *value)
 
size_t json_serialization_size_pretty (const JSON_Value *value)
 
JSON_Status json_serialize_to_buffer_pretty (const JSON_Value *value, char *buf, size_t buf_size_in_bytes)
 
JSON_Status json_serialize_to_file_pretty (const JSON_Value *value, const char *filename)
 
char * json_serialize_to_string_pretty (const JSON_Value *value)
 
void json_free_serialized_string (char *string)
 
int json_value_equals (const JSON_Value *a, const JSON_Value *b)
 
JSON_Status json_validate (const JSON_Value *schema, const JSON_Value *value)
 
JSON_Valuejson_object_get_value (const JSON_Object *object, const char *name)
 
const char * json_object_get_string (const JSON_Object *object, const char *name)
 
size_t json_object_get_string_len (const JSON_Object *object, const char *name)
 
JSON_Objectjson_object_get_object (const JSON_Object *object, const char *name)
 
JSON_Arrayjson_object_get_array (const JSON_Object *object, const char *name)
 
double json_object_get_number (const JSON_Object *object, const char *name)
 
int json_object_get_boolean (const JSON_Object *object, const char *name)
 
JSON_Valuejson_object_dotget_value (const JSON_Object *object, const char *name)
 
const char * json_object_dotget_string (const JSON_Object *object, const char *name)
 
size_t json_object_dotget_string_len (const JSON_Object *object, const char *name)
 
JSON_Objectjson_object_dotget_object (const JSON_Object *object, const char *name)
 
JSON_Arrayjson_object_dotget_array (const JSON_Object *object, const char *name)
 
double json_object_dotget_number (const JSON_Object *object, const char *name)
 
int json_object_dotget_boolean (const JSON_Object *object, const char *name)
 
size_t json_object_get_count (const JSON_Object *object)
 
const char * json_object_get_name (const JSON_Object *object, size_t index)
 
JSON_Valuejson_object_get_value_at (const JSON_Object *object, size_t index)
 
JSON_Valuejson_object_get_wrapping_value (const JSON_Object *object)
 
int json_object_has_value (const JSON_Object *object, const char *name)
 
int json_object_has_value_of_type (const JSON_Object *object, const char *name, JSON_Value_Type type)
 
int json_object_dothas_value (const JSON_Object *object, const char *name)
 
int json_object_dothas_value_of_type (const JSON_Object *object, const char *name, JSON_Value_Type type)
 
JSON_Status json_object_set_value (JSON_Object *object, const char *name, JSON_Value *value)
 
JSON_Status json_object_set_string (JSON_Object *object, const char *name, const char *string)
 
JSON_Status json_object_set_string_with_len (JSON_Object *object, const char *name, const char *string, size_t len)
 
JSON_Status json_object_set_number (JSON_Object *object, const char *name, double number)
 
JSON_Status json_object_set_boolean (JSON_Object *object, const char *name, int boolean)
 
JSON_Status json_object_set_null (JSON_Object *object, const char *name)
 
JSON_Status json_object_dotset_value (JSON_Object *object, const char *name, JSON_Value *value)
 
JSON_Status json_object_dotset_string (JSON_Object *object, const char *name, const char *string)
 
JSON_Status json_object_dotset_string_with_len (JSON_Object *object, const char *name, const char *string, size_t len)
 
JSON_Status json_object_dotset_number (JSON_Object *object, const char *name, double number)
 
JSON_Status json_object_dotset_boolean (JSON_Object *object, const char *name, int boolean)
 
JSON_Status json_object_dotset_null (JSON_Object *object, const char *name)
 
JSON_Status json_object_remove (JSON_Object *object, const char *name)
 
JSON_Status json_object_dotremove (JSON_Object *object, const char *key)
 
JSON_Status json_object_clear (JSON_Object *object)
 
JSON_Valuejson_array_get_value (const JSON_Array *array, size_t index)
 
const char * json_array_get_string (const JSON_Array *array, size_t index)
 
size_t json_array_get_string_len (const JSON_Array *array, size_t index)
 
JSON_Objectjson_array_get_object (const JSON_Array *array, size_t index)
 
JSON_Arrayjson_array_get_array (const JSON_Array *array, size_t index)
 
double json_array_get_number (const JSON_Array *array, size_t index)
 
int json_array_get_boolean (const JSON_Array *array, size_t index)
 
size_t json_array_get_count (const JSON_Array *array)
 
JSON_Valuejson_array_get_wrapping_value (const JSON_Array *array)
 
JSON_Status json_array_remove (JSON_Array *array, size_t i)
 
JSON_Status json_array_replace_value (JSON_Array *array, size_t i, JSON_Value *value)
 
JSON_Status json_array_replace_string (JSON_Array *array, size_t i, const char *string)
 
JSON_Status json_array_replace_string_with_len (JSON_Array *array, size_t i, const char *string, size_t len)
 
JSON_Status json_array_replace_number (JSON_Array *array, size_t i, double number)
 
JSON_Status json_array_replace_boolean (JSON_Array *array, size_t i, int boolean)
 
JSON_Status json_array_replace_null (JSON_Array *array, size_t i)
 
JSON_Status json_array_clear (JSON_Array *array)
 
JSON_Status json_array_append_value (JSON_Array *array, JSON_Value *value)
 
JSON_Status json_array_append_string (JSON_Array *array, const char *string)
 
JSON_Status json_array_append_string_with_len (JSON_Array *array, const char *string, size_t len)
 
JSON_Status json_array_append_number (JSON_Array *array, double number)
 
JSON_Status json_array_append_boolean (JSON_Array *array, int boolean)
 
JSON_Status json_array_append_null (JSON_Array *array)
 
JSON_Valuejson_value_init_object (void)
 
JSON_Valuejson_value_init_array (void)
 
JSON_Valuejson_value_init_string (const char *string)
 
JSON_Valuejson_value_init_string_with_len (const char *string, size_t length)
 
JSON_Valuejson_value_init_number (double number)
 
JSON_Valuejson_value_init_boolean (int boolean)
 
JSON_Valuejson_value_init_null (void)
 
JSON_Valuejson_value_deep_copy (const JSON_Value *value)
 
void json_value_free (JSON_Value *value)
 
JSON_Value_Type json_value_get_type (const JSON_Value *value)
 
JSON_Objectjson_value_get_object (const JSON_Value *value)
 
JSON_Arrayjson_value_get_array (const JSON_Value *value)
 
const char * json_value_get_string (const JSON_Value *value)
 
size_t json_value_get_string_len (const JSON_Value *value)
 
double json_value_get_number (const JSON_Value *value)
 
int json_value_get_boolean (const JSON_Value *value)
 
JSON_Valuejson_value_get_parent (const JSON_Value *value)
 
JSON_Value_Type json_type (const JSON_Value *value)
 
JSON_Objectjson_object (const JSON_Value *value)
 
JSON_Arrayjson_array (const JSON_Value *value)
 
const char * json_string (const JSON_Value *value)
 
size_t json_string_len (const JSON_Value *value)
 
double json_number (const JSON_Value *value)
 
int json_boolean (const JSON_Value *value)
 

Macro Definition Documentation

◆ PARSON_VERSION_MAJOR

#define PARSON_VERSION_MAJOR   1

Definition at line 36 of file parson.h.

◆ PARSON_VERSION_MINOR

#define PARSON_VERSION_MINOR   5

Definition at line 37 of file parson.h.

◆ PARSON_VERSION_PATCH

#define PARSON_VERSION_PATCH   3

Definition at line 38 of file parson.h.

◆ PARSON_VERSION_STRING

#define PARSON_VERSION_STRING   "1.5.3"

Definition at line 40 of file parson.h.

Typedef Documentation

◆ JSON_Array

typedef struct json_array_t JSON_Array

Definition at line 1 of file parson.h.

◆ JSON_Free_Function

typedef void(* JSON_Free_Function) (void *)

Definition at line 64 of file parson.h.

◆ JSON_Malloc_Function

typedef void*(* JSON_Malloc_Function) (size_t)

Definition at line 63 of file parson.h.

◆ JSON_Number_Serialization_Function

typedef int(* JSON_Number_Serialization_Function) (double num, char *buf)

Definition at line 71 of file parson.h.

◆ JSON_Object

typedef struct json_object_t JSON_Object

Definition at line 1 of file parson.h.

◆ JSON_Status

typedef int JSON_Status

Definition at line 61 of file parson.h.

◆ JSON_Value

typedef struct json_value_t JSON_Value

Definition at line 1 of file parson.h.

◆ JSON_Value_Type

typedef int JSON_Value_Type

Definition at line 58 of file parson.h.

Enumeration Type Documentation

◆ json_result_t

Enumerator
JSONSuccess 
JSONFailure 

Definition at line 60 of file parson.h.

◆ json_value_type

Enumerator
JSONError 
JSONNull 
JSONString 
JSONNumber 
JSONObject 
JSONArray 
JSONBoolean 

Definition at line 49 of file parson.h.

Function Documentation

◆ json_array()

JSON_Array* json_array ( const JSON_Value value)

Definition at line 2800 of file parson.c.

References json_value_get_array().

◆ json_array_append_boolean()

JSON_Status json_array_append_boolean ( JSON_Array array,
int  boolean 
)

◆ json_array_append_null()

JSON_Status json_array_append_null ( JSON_Array array)

◆ json_array_append_number()

JSON_Status json_array_append_number ( JSON_Array array,
double  number 
)

◆ json_array_append_string()

JSON_Status json_array_append_string ( JSON_Array array,
const char *  string 
)

◆ json_array_append_string_with_len()

JSON_Status json_array_append_string_with_len ( JSON_Array array,
const char *  string,
size_t  len 
)

◆ json_array_append_value()

JSON_Status json_array_append_value ( JSON_Array array,
JSON_Value value 
)

◆ json_array_clear()

JSON_Status json_array_clear ( JSON_Array array)

◆ json_array_get_array()

JSON_Array* json_array_get_array ( const JSON_Array array,
size_t  index 
)

Definition at line 1789 of file parson.c.

References json_array_get_value(), and json_value_get_array().

◆ json_array_get_boolean()

int json_array_get_boolean ( const JSON_Array array,
size_t  index 
)

Definition at line 1794 of file parson.c.

References json_array_get_value(), and json_value_get_boolean().

◆ json_array_get_count()

size_t json_array_get_count ( const JSON_Array array)

◆ json_array_get_number()

double json_array_get_number ( const JSON_Array array,
size_t  index 
)

Definition at line 1779 of file parson.c.

References json_array_get_value(), and json_value_get_number().

◆ json_array_get_object()

JSON_Object* json_array_get_object ( const JSON_Array array,
size_t  index 
)

Definition at line 1784 of file parson.c.

References json_array_get_value(), and json_value_get_object().

◆ json_array_get_string()

const char* json_array_get_string ( const JSON_Array array,
size_t  index 
)

Definition at line 1769 of file parson.c.

References json_array_get_value(), and json_value_get_string().

◆ json_array_get_string_len()

size_t json_array_get_string_len ( const JSON_Array array,
size_t  index 
)

Definition at line 1774 of file parson.c.

References json_array_get_value(), and json_value_get_string_len().

◆ json_array_get_value()

◆ json_array_get_wrapping_value()

JSON_Value* json_array_get_wrapping_value ( const JSON_Array array)

Definition at line 1804 of file parson.c.

References NULL.

Referenced by json_array_replace_value().

◆ json_array_remove()

JSON_Status json_array_remove ( JSON_Array array,
size_t  i 
)

◆ json_array_replace_boolean()

JSON_Status json_array_replace_boolean ( JSON_Array array,
size_t  i,
int  boolean 
)

◆ json_array_replace_null()

JSON_Status json_array_replace_null ( JSON_Array array,
size_t  i 
)

◆ json_array_replace_number()

JSON_Status json_array_replace_number ( JSON_Array array,
size_t  i,
double  number 
)

◆ json_array_replace_string()

JSON_Status json_array_replace_string ( JSON_Array array,
size_t  i,
const char *  string 
)

◆ json_array_replace_string_with_len()

JSON_Status json_array_replace_string_with_len ( JSON_Array array,
size_t  i,
const char *  string,
size_t  len 
)

◆ json_array_replace_value()

◆ json_boolean()

int json_boolean ( const JSON_Value value)

Definition at line 2820 of file parson.c.

References json_value_get_boolean().

◆ json_free_serialized_string()

void json_free_serialized_string ( char *  string)

Definition at line 2213 of file parson.c.

◆ json_number()

double json_number ( const JSON_Value value)

Definition at line 2815 of file parson.c.

References json_value_get_number().

◆ json_object()

JSON_Object* json_object ( const JSON_Value value)

Definition at line 2795 of file parson.c.

References json_value_get_object().

◆ json_object_clear()

JSON_Status json_object_clear ( JSON_Object object)

Definition at line 2635 of file parson.c.

References json_object_get_count(), JSONFailure, and NULL.

◆ json_object_dotget_array()

JSON_Array* json_object_dotget_array ( const JSON_Object object,
const char *  name 
)

Definition at line 1696 of file parson.c.

References json_object_dotget_value(), json_value_get_array(), and name.

◆ json_object_dotget_boolean()

int json_object_dotget_boolean ( const JSON_Object object,
const char *  name 
)

Definition at line 1702 of file parson.c.

References json_object_dotget_value(), json_value_get_boolean(), and name.

◆ json_object_dotget_number()

double json_object_dotget_number ( const JSON_Object object,
const char *  name 
)

Definition at line 1685 of file parson.c.

References json_object_dotget_value(), json_value_get_number(), and name.

◆ json_object_dotget_object()

JSON_Object* json_object_dotget_object ( const JSON_Object object,
const char *  name 
)

Definition at line 1690 of file parson.c.

References json_object_dotget_value(), json_value_get_object(), and name.

◆ json_object_dotget_string()

const char* json_object_dotget_string ( const JSON_Object object,
const char *  name 
)

Definition at line 1673 of file parson.c.

References json_object_dotget_value(), json_value_get_string(), and name.

◆ json_object_dotget_string_len()

size_t json_object_dotget_string_len ( const JSON_Object object,
const char *  name 
)

Definition at line 1679 of file parson.c.

References json_object_dotget_value(), json_value_get_string_len(), and name.

◆ json_object_dotget_value()

◆ json_object_dothas_value()

int json_object_dothas_value ( const JSON_Object object,
const char *  name 
)

Definition at line 1748 of file parson.c.

References json_object_dotget_value(), name, and NULL.

◆ json_object_dothas_value_of_type()

int json_object_dothas_value_of_type ( const JSON_Object object,
const char *  name,
JSON_Value_Type  type 
)

Definition at line 1753 of file parson.c.

◆ json_object_dotremove()

JSON_Status json_object_dotremove ( JSON_Object object,
const char *  key 
)

Definition at line 2630 of file parson.c.

◆ json_object_dotset_boolean()

JSON_Status json_object_dotset_boolean ( JSON_Object object,
const char *  name,
int  boolean 
)

◆ json_object_dotset_null()

JSON_Status json_object_dotset_null ( JSON_Object object,
const char *  name 
)

◆ json_object_dotset_number()

JSON_Status json_object_dotset_number ( JSON_Object object,
const char *  name,
double  number 
)

◆ json_object_dotset_string()

JSON_Status json_object_dotset_string ( JSON_Object object,
const char *  name,
const char *  string 
)

◆ json_object_dotset_string_with_len()

JSON_Status json_object_dotset_string_with_len ( JSON_Object object,
const char *  name,
const char *  string,
size_t  len 
)

◆ json_object_dotset_value()

JSON_Status json_object_dotset_value ( JSON_Object object,
const char *  name,
JSON_Value value 
)

◆ json_object_get_array()

JSON_Array* json_object_get_array ( const JSON_Object object,
const char *  name 
)

Definition at line 1651 of file parson.c.

References json_object_get_value(), json_value_get_array(), and name.

◆ json_object_get_boolean()

int json_object_get_boolean ( const JSON_Object object,
const char *  name 
)

Definition at line 1656 of file parson.c.

References json_object_get_value(), json_value_get_boolean(), and name.

◆ json_object_get_count()

size_t json_object_get_count ( const JSON_Object object)

Definition at line 1707 of file parson.c.

Referenced by json_object_clear(), json_object_get_name(), and json_object_get_value_at().

◆ json_object_get_name()

const char* json_object_get_name ( const JSON_Object object,
size_t  index 
)

Definition at line 1712 of file parson.c.

References json_object_get_count(), and NULL.

◆ json_object_get_number()

double json_object_get_number ( const JSON_Object object,
const char *  name 
)

Definition at line 1641 of file parson.c.

References json_object_get_value(), json_value_get_number(), and name.

◆ json_object_get_object()

JSON_Object* json_object_get_object ( const JSON_Object object,
const char *  name 
)

Definition at line 1646 of file parson.c.

References json_object_get_value(), json_value_get_object(), and name.

◆ json_object_get_string()

const char* json_object_get_string ( const JSON_Object object,
const char *  name 
)

Definition at line 1631 of file parson.c.

References json_object_get_value(), json_value_get_string(), and name.

◆ json_object_get_string_len()

size_t json_object_get_string_len ( const JSON_Object object,
const char *  name 
)

Definition at line 1636 of file parson.c.

References json_object_get_value(), json_value_get_string_len(), and name.

◆ json_object_get_value()

◆ json_object_get_value_at()

JSON_Value* json_object_get_value_at ( const JSON_Object object,
size_t  index 
)

Definition at line 1720 of file parson.c.

References json_object_get_count(), and NULL.

◆ json_object_get_wrapping_value()

JSON_Value* json_object_get_wrapping_value ( const JSON_Object object)

Definition at line 1728 of file parson.c.

References NULL.

◆ json_object_has_value()

int json_object_has_value ( const JSON_Object object,
const char *  name 
)

Definition at line 1736 of file parson.c.

References json_object_get_value(), name, and NULL.

◆ json_object_has_value_of_type()

int json_object_has_value_of_type ( const JSON_Object object,
const char *  name,
JSON_Value_Type  type 
)

Definition at line 1741 of file parson.c.

◆ json_object_remove()

JSON_Status json_object_remove ( JSON_Object object,
const char *  name 
)

Definition at line 2625 of file parson.c.

◆ json_object_set_boolean()

JSON_Status json_object_set_boolean ( JSON_Object object,
const char *  name,
int  boolean 
)

◆ json_object_set_null()

JSON_Status json_object_set_null ( JSON_Object object,
const char *  name 
)

◆ json_object_set_number()

JSON_Status json_object_set_number ( JSON_Object object,
const char *  name,
double  number 
)

◆ json_object_set_string()

JSON_Status json_object_set_string ( JSON_Object object,
const char *  name,
const char *  string 
)

◆ json_object_set_string_with_len()

JSON_Status json_object_set_string_with_len ( JSON_Object object,
const char *  name,
const char *  string,
size_t  len 
)

◆ json_object_set_value()

JSON_Status json_object_set_value ( JSON_Object object,
const char *  name,
JSON_Value value 
)

◆ json_parse_file()

JSON_Value* json_parse_file ( const char *  filename)

Definition at line 1570 of file parson.c.

◆ json_parse_file_with_comments()

JSON_Value* json_parse_file_with_comments ( const char *  filename)

Definition at line 1582 of file parson.c.

◆ json_parse_string()

JSON_Value* json_parse_string ( const char *  string)

Definition at line 1594 of file parson.c.

References NULL.

◆ json_parse_string_with_comments()

JSON_Value* json_parse_string_with_comments ( const char *  string)

Definition at line 1605 of file parson.c.

References NULL.

◆ json_serialization_size()

size_t json_serialization_size ( const JSON_Value value)

Definition at line 2076 of file parson.c.

References PARSON_NUM_BUF_SIZE.

Referenced by json_serialize_to_buffer(), and json_serialize_to_string().

◆ json_serialization_size_pretty()

size_t json_serialization_size_pretty ( const JSON_Value value)

Definition at line 2144 of file parson.c.

References PARSON_NUM_BUF_SIZE.

Referenced by json_serialize_to_buffer_pretty(), and json_serialize_to_string_pretty().

◆ json_serialize_to_buffer()

JSON_Status json_serialize_to_buffer ( const JSON_Value value,
char *  buf,
size_t  buf_size_in_bytes 
)

Definition at line 2085 of file parson.c.

References json_serialization_size(), and JSONFailure.

◆ json_serialize_to_buffer_pretty()

JSON_Status json_serialize_to_buffer_pretty ( const JSON_Value value,
char *  buf,
size_t  buf_size_in_bytes 
)

Definition at line 2153 of file parson.c.

References json_serialization_size_pretty(), and JSONFailure.

◆ json_serialize_to_file()

JSON_Status json_serialize_to_file ( const JSON_Value value,
const char *  filename 
)

Definition at line 2100 of file parson.c.

◆ json_serialize_to_file_pretty()

JSON_Status json_serialize_to_file_pretty ( const JSON_Value value,
const char *  filename 
)

Definition at line 2168 of file parson.c.

◆ json_serialize_to_string()

char* json_serialize_to_string ( const JSON_Value value)

Definition at line 2124 of file parson.c.

References json_serialization_size(), JSONFailure, and NULL.

◆ json_serialize_to_string_pretty()

char* json_serialize_to_string_pretty ( const JSON_Value value)

Definition at line 2192 of file parson.c.

References json_serialization_size_pretty(), JSONFailure, and NULL.

◆ json_set_allocation_functions()

void json_set_allocation_functions ( JSON_Malloc_Function  malloc_fun,
JSON_Free_Function  free_fun 
)

Definition at line 2825 of file parson.c.

◆ json_set_escape_slashes()

void json_set_escape_slashes ( int  escape_slashes)

Definition at line 2832 of file parson.c.

◆ json_set_float_serialization_format()

void json_set_float_serialization_format ( const char *  format)

Definition at line 2837 of file parson.c.

◆ json_set_number_serialization_function()

void json_set_number_serialization_function ( JSON_Number_Serialization_Function  fun)

Definition at line 2850 of file parson.c.

◆ json_string()

const char* json_string ( const JSON_Value value)

Definition at line 2805 of file parson.c.

References json_value_get_string().

◆ json_string_len()

size_t json_string_len ( const JSON_Value value)

Definition at line 2810 of file parson.c.

References json_value_get_string_len().

◆ json_type()

JSON_Value_Type json_type ( const JSON_Value value)

Definition at line 2790 of file parson.c.

References json_value_get_type().

◆ json_validate()

JSON_Status json_validate ( const JSON_Value schema,
const JSON_Value value 
)

Definition at line 2655 of file parson.c.

References JSONError, and NULL.

◆ json_value_deep_copy()

◆ json_value_equals()

int json_value_equals ( const JSON_Value a,
const JSON_Value b 
)

Definition at line 2723 of file parson.c.

◆ json_value_free()

◆ json_value_get_array()

JSON_Array* json_value_get_array ( const JSON_Value value)

◆ json_value_get_boolean()

int json_value_get_boolean ( const JSON_Value value)

◆ json_value_get_number()

double json_value_get_number ( const JSON_Value value)

◆ json_value_get_object()

JSON_Object* json_value_get_object ( const JSON_Value value)

◆ json_value_get_parent()

JSON_Value* json_value_get_parent ( const JSON_Value value)

Definition at line 1858 of file parson.c.

References NULL.

◆ json_value_get_string()

const char* json_value_get_string ( const JSON_Value value)

◆ json_value_get_string_len()

size_t json_value_get_string_len ( const JSON_Value value)

◆ json_value_get_type()

◆ json_value_init_array()

JSON_Value* json_value_init_array ( void  )

Definition at line 1897 of file parson.c.

Referenced by json_value_deep_copy().

◆ json_value_init_boolean()

JSON_Value* json_value_init_boolean ( int  boolean)

◆ json_value_init_null()

JSON_Value* json_value_init_null ( void  )

◆ json_value_init_number()

JSON_Value* json_value_init_number ( double  number)

◆ json_value_init_object()

JSON_Value* json_value_init_object ( void  )

Definition at line 1881 of file parson.c.

◆ json_value_init_string()

JSON_Value* json_value_init_string ( const char *  string)

◆ json_value_init_string_with_len()

JSON_Value* json_value_init_string_with_len ( const char *  string,
size_t  length 
)