GRASS GIS 8 Programmer's Manual  8.5.0dev(2025)-fbabf32052
gjson.c File Reference
#include "gjson.h"
Include dependency graph for gjson.c:

Go to the source code of this file.

Functions

JSON_ValueG_json_value_init_object (void)
 
JSON_ValueG_json_value_init_array (void)
 
JSON_ObjectG_json_value_get_object (const JSON_Value *value)
 
JSON_ObjectG_json_object (const JSON_Value *value)
 
JSON_ObjectG_json_object_get_object (const JSON_Object *object, const char *name)
 
JSON_ArrayG_json_object_get_array (const JSON_Object *object, const char *name)
 
JSON_ValueG_json_object_get_value (const JSON_Object *object, const char *name)
 
const char * G_json_object_get_string (const JSON_Object *object, const char *name)
 
double G_json_object_get_number (const JSON_Object *object, const char *name)
 
int G_json_object_get_boolean (const JSON_Object *object, const char *name)
 
JSON_ValueG_json_object_get_wrapping_value (const JSON_Object *object)
 
JSON_Status G_json_object_set_value (JSON_Object *object, const char *name, JSON_Value *value)
 
JSON_Status G_json_object_set_string (JSON_Object *object, const char *name, const char *string)
 
JSON_Status G_json_object_set_number (JSON_Object *object, const char *name, double number)
 
JSON_Status G_json_object_set_boolean (JSON_Object *object, const char *name, int boolean)
 
JSON_Status G_json_object_set_null (JSON_Object *object, const char *name)
 
JSON_ArrayG_json_array (const JSON_Value *value)
 
JSON_ValueG_json_array_get_value (const JSON_Array *array, size_t index)
 
const char * G_json_array_get_string (const JSON_Array *array, size_t index)
 
double G_json_array_get_number (const JSON_Array *array, size_t index)
 
int G_json_array_get_boolean (const JSON_Array *array, size_t index)
 
JSON_Status G_json_array_append_value (JSON_Array *array, JSON_Value *value)
 
JSON_Status G_json_array_append_string (JSON_Array *array, const char *string)
 
JSON_Status G_json_array_append_number (JSON_Array *array, double number)
 
JSON_Status G_json_array_append_boolean (JSON_Array *array, int boolean)
 
JSON_Status G_json_array_append_null (JSON_Array *array)
 
char * G_json_serialize_to_string_pretty (const JSON_Value *value)
 
void G_json_free_serialized_string (char *string)
 
void G_json_value_free (JSON_Value *value)
 

Function Documentation

◆ G_json_array()

JSON_Array* G_json_array ( const JSON_Value value)

Definition at line 97 of file gjson.c.

References json_array().

◆ G_json_array_append_boolean()

JSON_Status G_json_array_append_boolean ( JSON_Array array,
int  boolean 
)

Definition at line 133 of file gjson.c.

References json_array_append_boolean().

◆ G_json_array_append_null()

JSON_Status G_json_array_append_null ( JSON_Array array)

Definition at line 138 of file gjson.c.

References json_array_append_null().

◆ G_json_array_append_number()

JSON_Status G_json_array_append_number ( JSON_Array array,
double  number 
)

Definition at line 128 of file gjson.c.

References json_array_append_number().

◆ G_json_array_append_string()

JSON_Status G_json_array_append_string ( JSON_Array array,
const char *  string 
)

Definition at line 123 of file gjson.c.

References json_array_append_string().

◆ G_json_array_append_value()

JSON_Status G_json_array_append_value ( JSON_Array array,
JSON_Value value 
)

Definition at line 118 of file gjson.c.

References json_array_append_value().

◆ G_json_array_get_boolean()

int G_json_array_get_boolean ( const JSON_Array array,
size_t  index 
)

Definition at line 113 of file gjson.c.

References json_array_get_boolean().

◆ G_json_array_get_number()

double G_json_array_get_number ( const JSON_Array array,
size_t  index 
)

Definition at line 109 of file gjson.c.

References json_array_get_number().

◆ G_json_array_get_string()

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

Definition at line 105 of file gjson.c.

References json_array_get_string().

◆ G_json_array_get_value()

JSON_Value* G_json_array_get_value ( const JSON_Array array,
size_t  index 
)

Definition at line 101 of file gjson.c.

References json_array_get_value().

◆ G_json_free_serialized_string()

void G_json_free_serialized_string ( char *  string)

Definition at line 148 of file gjson.c.

References json_free_serialized_string().

◆ G_json_object()

JSON_Object* G_json_object ( const JSON_Value value)

Definition at line 39 of file gjson.c.

References json_object().

◆ G_json_object_get_array()

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

Definition at line 48 of file gjson.c.

References json_object_get_array(), and name.

◆ G_json_object_get_boolean()

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

Definition at line 65 of file gjson.c.

References json_object_get_boolean(), and name.

◆ G_json_object_get_number()

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

Definition at line 61 of file gjson.c.

References json_object_get_number(), and name.

◆ G_json_object_get_object()

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

Definition at line 43 of file gjson.c.

References json_object_get_object(), and name.

◆ G_json_object_get_string()

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

Definition at line 56 of file gjson.c.

References json_object_get_string(), and name.

◆ G_json_object_get_value()

JSON_Value* G_json_object_get_value ( const JSON_Object object,
const char *  name 
)

Definition at line 52 of file gjson.c.

References json_object_get_value(), and name.

◆ G_json_object_get_wrapping_value()

JSON_Value* G_json_object_get_wrapping_value ( const JSON_Object object)

Definition at line 69 of file gjson.c.

References json_object_get_wrapping_value().

◆ G_json_object_set_boolean()

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

Definition at line 88 of file gjson.c.

References json_object_set_boolean(), and name.

◆ G_json_object_set_null()

JSON_Status G_json_object_set_null ( JSON_Object object,
const char *  name 
)

Definition at line 93 of file gjson.c.

References json_object_set_null(), and name.

◆ G_json_object_set_number()

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

Definition at line 83 of file gjson.c.

References json_object_set_number(), and name.

◆ G_json_object_set_string()

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

Definition at line 78 of file gjson.c.

References json_object_set_string(), and name.

◆ G_json_object_set_value()

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

Definition at line 73 of file gjson.c.

References json_object_set_value(), and name.

◆ G_json_serialize_to_string_pretty()

char* G_json_serialize_to_string_pretty ( const JSON_Value value)

Definition at line 143 of file gjson.c.

References json_serialize_to_string_pretty().

◆ G_json_value_free()

void G_json_value_free ( JSON_Value value)

Definition at line 152 of file gjson.c.

References json_value_free().

◆ G_json_value_get_object()

JSON_Object* G_json_value_get_object ( const JSON_Value value)

Definition at line 34 of file gjson.c.

References json_value_get_object().

◆ G_json_value_init_array()

JSON_Value* G_json_value_init_array ( void  )

Definition at line 29 of file gjson.c.

References json_value_init_array().

◆ G_json_value_init_object()

JSON_Value* G_json_value_init_object ( void  )

Definition at line 24 of file gjson.c.

References json_value_init_object().