|
GRASS 8 Programmer's Manual 8.5.0(2026)-8d6ceba290
|
#include "parson.h"#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <math.h>#include <errno.h>
Go to the source code of this file.
Macros | |
| #define | PARSON_IMPL_VERSION_MAJOR 1 |
| #define | PARSON_IMPL_VERSION_MINOR 5 |
| #define | PARSON_IMPL_VERSION_PATCH 3 |
| #define | strcpy USE_MEMCPY_INSTEAD_OF_STRCPY |
| #define | STARTING_CAPACITY 16 |
| #define | MAX_NESTING 2048 |
| #define | PARSON_DEFAULT_FLOAT_FORMAT "%1.17g" |
| #define | PARSON_NUM_BUF_SIZE 64 |
| #define | PARSON_INDENT_STR " " |
| #define | SIZEOF_TOKEN(a) |
| #define | SKIP_CHAR(str) |
| #define | SKIP_WHITESPACES(str) |
| #define | MAX(a, b) |
| #define | IS_NUMBER_INVALID(x) |
| #define | OBJECT_INVALID_IX ((size_t)-1) |
| #define | IS_CONT(b) |
| #define | PARSON_TRUE 1 |
| #define | PARSON_FALSE 0 |
| #define | APPEND_STRING(str) |
| #define | APPEND_INDENT(level) |
Typedefs | |
| typedef int | parson_bool_t |
| typedef struct json_string | JSON_String |
| typedef union json_value_value | JSON_Value_Value |
| #define APPEND_INDENT | ( | level | ) |
| #define APPEND_STRING | ( | str | ) |
| #define IS_CONT | ( | b | ) |
| #define IS_NUMBER_INVALID | ( | x | ) |
Definition at line 100 of file parson.c.
Referenced by json_value_init_number().
| #define MAX | ( | a, | |
| b ) |
Definition at line 92 of file parson.c.
Referenced by Cairo_Line_width(), Cairo_raster(), G_rgb_to_hsv(), kdtree_optimize(), MT_region_data(), quad_get_points(), SHPComputeExtents(), SHPCreateObject(), SHPOpenLL(), and SHPWriteObject().
| #define OBJECT_INVALID_IX ((size_t)-1) |
Definition at line 103 of file parson.c.
Referenced by json_object_clear().
| #define PARSON_FALSE 0 |
Definition at line 121 of file parson.c.
Referenced by json_object_set_value(), json_serialization_size(), json_serialize_to_buffer(), and json_value_equals().
| #define PARSON_NUM_BUF_SIZE 64 |
Definition at line 77 of file parson.c.
Referenced by json_serialization_size(), and json_serialization_size_pretty().
| #define PARSON_TRUE 1 |
Definition at line 120 of file parson.c.
Referenced by json_object_dotremove(), json_object_remove(), json_serialization_size_pretty(), json_serialize_to_buffer_pretty(), and json_value_equals().
| #define SKIP_WHITESPACES | ( | str | ) |
| #define strcpy USE_MEMCPY_INSTEAD_OF_STRCPY |
Definition at line 66 of file parson.c.
Referenced by datetime_error(), DBFCreateLL(), DBFOpenLL(), G__machine_name(), G__temp_element(), G__temp_element_basedir(), G__usage_xml(), G__wps_print_process_description(), G_format_timestamp(), G_get_3dview_defaults(), G_init_locale(), G_join_basename_strings(), G_list(), G_myname(), G_parser(), G_store(), G_unqualified_name(), get_key_data(), GPJ_osr_to_grass(), GS_get_att(), Gs_get_cat_label(), Gs_save_3dview(), gsds_get_name(), gvl_file_get_name(), GVL_get_volname(), GVL_isosurf_get_att(), M_find(), M_get_option_desc(), M_get_options(), M_read_list(), pj_get_kv(), pj_get_string(), recreate_command(), and S_read().
| typedef struct json_string JSON_String |
| typedef union json_value_value JSON_Value_Value |
| typedef int parson_bool_t |
| JSON_Array * json_array | ( | const JSON_Value * | value | ) |
Definition at line 2805 of file parson.c.
References json_array(), and json_value_get_array().
Referenced by G_json_array(), and json_array().
| JSON_Status json_array_append_boolean | ( | JSON_Array * | array, |
| int | boolean ) |
Definition at line 2379 of file parson.c.
References json_array_append_boolean(), json_array_append_value(), json_value_free(), json_value_init_boolean(), JSONFailure, JSONSuccess, and NULL.
Referenced by G_json_array_append_boolean(), and json_array_append_boolean().
| JSON_Status json_array_append_null | ( | JSON_Array * | array | ) |
Definition at line 2392 of file parson.c.
References json_array_append_null(), json_array_append_value(), json_value_free(), json_value_init_null(), JSONFailure, JSONSuccess, and NULL.
Referenced by G_json_array_append_null(), and json_array_append_null().
| JSON_Status json_array_append_number | ( | JSON_Array * | array, |
| double | number ) |
Definition at line 2366 of file parson.c.
References json_array_append_number(), json_array_append_value(), json_value_free(), json_value_init_number(), JSONFailure, JSONSuccess, and NULL.
Referenced by G_json_array_append_number(), and json_array_append_number().
| JSON_Status json_array_append_string | ( | JSON_Array * | array, |
| const char * | string ) |
Definition at line 2339 of file parson.c.
References json_array_append_string(), json_array_append_value(), json_value_free(), json_value_init_string(), JSONFailure, JSONSuccess, and NULL.
Referenced by G_json_array_append_string(), and json_array_append_string().
| JSON_Status json_array_append_string_with_len | ( | JSON_Array * | array, |
| const char * | string, | ||
| size_t | len ) |
Definition at line 2352 of file parson.c.
References json_array_append_string_with_len(), json_array_append_value(), json_value_free(), json_value_init_string_with_len(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_array_append_string_with_len().
| JSON_Status json_array_append_value | ( | JSON_Array * | array, |
| JSON_Value * | value ) |
Definition at line 2331 of file parson.c.
References json_array_append_value(), JSONFailure, and NULL.
Referenced by G_json_array_append_value(), json_array_append_boolean(), json_array_append_null(), json_array_append_number(), json_array_append_string(), json_array_append_string_with_len(), and json_array_append_value().
| JSON_Status json_array_clear | ( | JSON_Array * | array | ) |
Definition at line 2318 of file parson.c.
References json_array_clear(), json_array_get_count(), json_array_get_value(), json_value_free(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_array_clear().
| JSON_Array * json_array_get_array | ( | const JSON_Array * | array, |
| size_t | index ) |
Definition at line 1794 of file parson.c.
References json_array_get_array(), json_array_get_value(), and json_value_get_array().
Referenced by json_array_get_array().
| int json_array_get_boolean | ( | const JSON_Array * | array, |
| size_t | index ) |
Definition at line 1799 of file parson.c.
References json_array_get_boolean(), json_array_get_value(), and json_value_get_boolean().
Referenced by G_json_array_get_boolean(), and json_array_get_boolean().
| size_t json_array_get_count | ( | const JSON_Array * | array | ) |
Definition at line 1804 of file parson.c.
References json_array_get_count().
Referenced by json_array_clear(), json_array_get_count(), json_array_get_value(), json_array_remove(), json_array_replace_value(), json_validate(), json_value_deep_copy(), and json_value_equals().
| double json_array_get_number | ( | const JSON_Array * | array, |
| size_t | index ) |
Definition at line 1784 of file parson.c.
References json_array_get_number(), json_array_get_value(), and json_value_get_number().
Referenced by G_json_array_get_number(), and json_array_get_number().
| JSON_Object * json_array_get_object | ( | const JSON_Array * | array, |
| size_t | index ) |
Definition at line 1789 of file parson.c.
References json_array_get_object(), json_array_get_value(), and json_value_get_object().
Referenced by json_array_get_object().
| const char * json_array_get_string | ( | const JSON_Array * | array, |
| size_t | index ) |
Definition at line 1774 of file parson.c.
References json_array_get_string(), json_array_get_value(), and json_value_get_string().
Referenced by G_json_array_get_string(), and json_array_get_string().
| size_t json_array_get_string_len | ( | const JSON_Array * | array, |
| size_t | index ) |
Definition at line 1779 of file parson.c.
References json_array_get_string_len(), json_array_get_value(), and json_value_get_string_len().
Referenced by json_array_get_string_len().
| JSON_Value * json_array_get_value | ( | const JSON_Array * | array, |
| size_t | index ) |
Definition at line 1766 of file parson.c.
References json_array_get_count(), json_array_get_value(), and NULL.
Referenced by G_json_array_get_value(), json_array_clear(), json_array_get_array(), json_array_get_boolean(), json_array_get_number(), json_array_get_object(), json_array_get_string(), json_array_get_string_len(), json_array_get_value(), json_array_remove(), json_array_replace_value(), json_validate(), json_value_deep_copy(), and json_value_equals().
| JSON_Value * json_array_get_wrapping_value | ( | const JSON_Array * | array | ) |
Definition at line 1809 of file parson.c.
References json_array_get_wrapping_value(), and NULL.
Referenced by json_array_get_wrapping_value(), and json_array_replace_value().
| JSON_Status json_array_remove | ( | JSON_Array * | array, |
| size_t | ix ) |
Definition at line 2223 of file parson.c.
References json_array_get_count(), json_array_get_value(), json_array_remove(), json_value_free(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_array_remove().
| JSON_Status json_array_replace_boolean | ( | JSON_Array * | array, |
| size_t | i, | ||
| int | boolean ) |
Definition at line 2292 of file parson.c.
References json_array_replace_boolean(), json_array_replace_value(), json_value_free(), json_value_init_boolean(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_array_replace_boolean().
| JSON_Status json_array_replace_null | ( | JSON_Array * | array, |
| size_t | i ) |
Definition at line 2305 of file parson.c.
References json_array_replace_null(), json_array_replace_value(), json_value_free(), json_value_init_null(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_array_replace_null().
| JSON_Status json_array_replace_number | ( | JSON_Array * | array, |
| size_t | i, | ||
| double | number ) |
Definition at line 2278 of file parson.c.
References json_array_replace_number(), json_array_replace_value(), json_value_free(), json_value_init_number(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_array_replace_number().
| JSON_Status json_array_replace_string | ( | JSON_Array * | array, |
| size_t | i, | ||
| const char * | string ) |
Definition at line 2250 of file parson.c.
References json_array_replace_string(), json_array_replace_value(), json_value_free(), json_value_init_string(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_array_replace_string().
| JSON_Status json_array_replace_string_with_len | ( | JSON_Array * | array, |
| size_t | i, | ||
| const char * | string, | ||
| size_t | len ) |
Definition at line 2264 of file parson.c.
References json_array_replace_string_with_len(), json_array_replace_value(), json_value_free(), json_value_init_string_with_len(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_array_replace_string_with_len().
| JSON_Status json_array_replace_value | ( | JSON_Array * | array, |
| size_t | ix, | ||
| JSON_Value * | value ) |
Definition at line 2237 of file parson.c.
References json_array_get_count(), json_array_get_value(), json_array_get_wrapping_value(), json_array_replace_value(), json_value_free(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_array_replace_boolean(), json_array_replace_null(), json_array_replace_number(), json_array_replace_string(), json_array_replace_string_with_len(), and json_array_replace_value().
| int json_boolean | ( | const JSON_Value * | value | ) |
Definition at line 2825 of file parson.c.
References json_boolean(), and json_value_get_boolean().
Referenced by json_boolean().
| void json_free_serialized_string | ( | char * | string | ) |
Definition at line 2218 of file parson.c.
References json_free_serialized_string().
Referenced by G_json_free_serialized_string(), json_free_serialized_string(), json_serialize_to_file(), json_serialize_to_file_pretty(), json_serialize_to_string(), and json_serialize_to_string_pretty().
| double json_number | ( | const JSON_Value * | value | ) |
Definition at line 2820 of file parson.c.
References json_number(), and json_value_get_number().
Referenced by json_number().
| JSON_Object * json_object | ( | const JSON_Value * | value | ) |
Definition at line 2800 of file parson.c.
References json_object(), and json_value_get_object().
Referenced by G_json_object(), and json_object().
| JSON_Status json_object_clear | ( | JSON_Object * | object | ) |
Definition at line 2640 of file parson.c.
References json_object_clear(), json_object_get_count(), json_value_free(), JSONFailure, JSONSuccess, NULL, and OBJECT_INVALID_IX.
Referenced by json_object_clear().
| JSON_Array * json_object_dotget_array | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1701 of file parson.c.
References json_object_dotget_array(), json_object_dotget_value(), and json_value_get_array().
Referenced by json_object_dotget_array().
| int json_object_dotget_boolean | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1707 of file parson.c.
References json_object_dotget_boolean(), json_object_dotget_value(), and json_value_get_boolean().
Referenced by json_object_dotget_boolean().
| double json_object_dotget_number | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1690 of file parson.c.
References json_object_dotget_number(), json_object_dotget_value(), and json_value_get_number().
Referenced by G_json_object_dotget_number(), and json_object_dotget_number().
| JSON_Object * json_object_dotget_object | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1695 of file parson.c.
References json_object_dotget_object(), json_object_dotget_value(), and json_value_get_object().
Referenced by json_object_dotget_object().
| const char * json_object_dotget_string | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1678 of file parson.c.
References json_object_dotget_string(), json_object_dotget_value(), and json_value_get_string().
Referenced by G_json_object_dotget_string(), and json_object_dotget_string().
| size_t json_object_dotget_string_len | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1684 of file parson.c.
References json_object_dotget_string_len(), json_object_dotget_value(), and json_value_get_string_len().
Referenced by json_object_dotget_string_len().
| JSON_Value * json_object_dotget_value | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1666 of file parson.c.
References json_object_dotget_value(), json_object_get_value(), and json_value_get_object().
Referenced by json_object_dotget_array(), json_object_dotget_boolean(), json_object_dotget_number(), json_object_dotget_object(), json_object_dotget_string(), json_object_dotget_string_len(), json_object_dotget_value(), json_object_dothas_value(), and json_object_dothas_value_of_type().
| int json_object_dothas_value | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1753 of file parson.c.
References json_object_dotget_value(), json_object_dothas_value(), and NULL.
Referenced by json_object_dothas_value().
| int json_object_dothas_value_of_type | ( | const JSON_Object * | object, |
| const char * | name, | ||
| JSON_Value_Type | type ) |
Definition at line 1758 of file parson.c.
References json_object_dotget_value(), json_object_dothas_value_of_type(), json_value_get_type(), and NULL.
Referenced by json_object_dothas_value_of_type().
| JSON_Status json_object_dotremove | ( | JSON_Object * | object, |
| const char * | name ) |
Definition at line 2635 of file parson.c.
References json_object_dotremove(), and PARSON_TRUE.
Referenced by json_object_dotremove().
| JSON_Status json_object_dotset_boolean | ( | JSON_Object * | object, |
| const char * | name, | ||
| int | boolean ) |
Definition at line 2603 of file parson.c.
References json_object_dotset_boolean(), json_object_dotset_value(), json_value_free(), json_value_init_boolean(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_object_dotset_boolean().
| JSON_Status json_object_dotset_null | ( | JSON_Object * | object, |
| const char * | name ) |
Definition at line 2617 of file parson.c.
References json_object_dotset_null(), json_object_dotset_value(), json_value_free(), json_value_init_null(), JSONFailure, JSONSuccess, and NULL.
Referenced by G_json_object_dotset_null(), and json_object_dotset_null().
| JSON_Status json_object_dotset_number | ( | JSON_Object * | object, |
| const char * | name, | ||
| double | number ) |
Definition at line 2589 of file parson.c.
References json_object_dotset_number(), json_object_dotset_value(), json_value_free(), json_value_init_number(), JSONFailure, JSONSuccess, and NULL.
Referenced by G_json_object_dotset_number(), and json_object_dotset_number().
| JSON_Status json_object_dotset_string | ( | JSON_Object * | object, |
| const char * | name, | ||
| const char * | string ) |
Definition at line 2560 of file parson.c.
References json_object_dotset_string(), json_object_dotset_value(), json_value_free(), json_value_init_string(), JSONFailure, JSONSuccess, and NULL.
Referenced by G_json_object_dotset_string(), and json_object_dotset_string().
| JSON_Status json_object_dotset_string_with_len | ( | JSON_Object * | object, |
| const char * | name, | ||
| const char * | string, | ||
| size_t | len ) |
Definition at line 2574 of file parson.c.
References json_object_dotset_string_with_len(), json_object_dotset_value(), json_value_free(), json_value_init_string_with_len(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_object_dotset_string_with_len().
| JSON_Status json_object_dotset_value | ( | JSON_Object * | object, |
| const char * | name, | ||
| JSON_Value * | value ) |
Definition at line 2506 of file parson.c.
References json_object_dotset_value(), json_object_set_value(), json_value_free(), json_value_get_object(), json_value_get_type(), json_value_init_object(), JSONFailure, JSONObject, JSONSuccess, and NULL.
Referenced by json_object_dotset_boolean(), json_object_dotset_null(), json_object_dotset_number(), json_object_dotset_string(), json_object_dotset_string_with_len(), and json_object_dotset_value().
| JSON_Array * json_object_get_array | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1656 of file parson.c.
References json_object_get_array(), json_object_get_value(), and json_value_get_array().
Referenced by G_json_object_get_array(), and json_object_get_array().
| int json_object_get_boolean | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1661 of file parson.c.
References json_object_get_boolean(), json_object_get_value(), and json_value_get_boolean().
Referenced by G_json_object_get_boolean(), and json_object_get_boolean().
| size_t json_object_get_count | ( | const JSON_Object * | object | ) |
Definition at line 1712 of file parson.c.
References json_object_get_count().
Referenced by json_object_clear(), json_object_get_count(), json_object_get_name(), json_object_get_value_at(), json_validate(), json_value_deep_copy(), and json_value_equals().
| const char * json_object_get_name | ( | const JSON_Object * | object, |
| size_t | index ) |
Definition at line 1717 of file parson.c.
References json_object_get_count(), json_object_get_name(), and NULL.
Referenced by json_object_get_name(), json_validate(), json_value_deep_copy(), and json_value_equals().
| double json_object_get_number | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1646 of file parson.c.
References json_object_get_number(), json_object_get_value(), and json_value_get_number().
Referenced by G_json_object_get_number(), and json_object_get_number().
| JSON_Object * json_object_get_object | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1651 of file parson.c.
References json_object_get_object(), json_object_get_value(), and json_value_get_object().
Referenced by G_json_object_get_object(), and json_object_get_object().
| const char * json_object_get_string | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1636 of file parson.c.
References json_object_get_string(), json_object_get_value(), and json_value_get_string().
Referenced by G_json_object_get_string(), and json_object_get_string().
| size_t json_object_get_string_len | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1641 of file parson.c.
References json_object_get_string_len(), json_object_get_value(), and json_value_get_string_len().
Referenced by json_object_get_string_len().
| JSON_Value * json_object_get_value | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1628 of file parson.c.
References json_object_get_value(), and NULL.
Referenced by G_json_object_get_value(), json_object_dotget_value(), json_object_get_array(), json_object_get_boolean(), json_object_get_number(), json_object_get_object(), json_object_get_string(), json_object_get_string_len(), json_object_get_value(), json_object_has_value(), json_object_has_value_of_type(), json_validate(), json_value_deep_copy(), and json_value_equals().
| JSON_Value * json_object_get_value_at | ( | const JSON_Object * | object, |
| size_t | index ) |
Definition at line 1725 of file parson.c.
References json_object_get_count(), json_object_get_value_at(), and NULL.
Referenced by json_object_get_value_at().
| JSON_Value * json_object_get_wrapping_value | ( | const JSON_Object * | object | ) |
Definition at line 1733 of file parson.c.
References json_object_get_wrapping_value(), and NULL.
Referenced by G_json_object_get_wrapping_value(), json_object_get_wrapping_value(), and json_object_set_value().
| int json_object_has_value | ( | const JSON_Object * | object, |
| const char * | name ) |
Definition at line 1741 of file parson.c.
References json_object_get_value(), json_object_has_value(), and NULL.
Referenced by json_object_has_value().
| int json_object_has_value_of_type | ( | const JSON_Object * | object, |
| const char * | name, | ||
| JSON_Value_Type | type ) |
Definition at line 1746 of file parson.c.
References json_object_get_value(), json_object_has_value_of_type(), json_value_get_type(), and NULL.
Referenced by json_object_has_value_of_type().
| JSON_Status json_object_remove | ( | JSON_Object * | object, |
| const char * | name ) |
Definition at line 2630 of file parson.c.
References json_object_remove(), and PARSON_TRUE.
Referenced by json_object_remove().
| JSON_Status json_object_set_boolean | ( | JSON_Object * | object, |
| const char * | name, | ||
| int | boolean ) |
Definition at line 2485 of file parson.c.
References json_object_set_boolean(), json_object_set_value(), json_value_free(), json_value_init_boolean(), and JSONSuccess.
Referenced by G_json_object_set_boolean(), and json_object_set_boolean().
| JSON_Status json_object_set_null | ( | JSON_Object * | object, |
| const char * | name ) |
Definition at line 2496 of file parson.c.
References json_object_set_null(), json_object_set_value(), json_value_free(), json_value_init_null(), and JSONSuccess.
Referenced by G_json_object_set_null(), and json_object_set_null().
| JSON_Status json_object_set_number | ( | JSON_Object * | object, |
| const char * | name, | ||
| double | number ) |
Definition at line 2474 of file parson.c.
References json_object_set_number(), json_object_set_value(), json_value_free(), json_value_init_number(), and JSONSuccess.
Referenced by G_json_object_set_number(), and json_object_set_number().
| JSON_Status json_object_set_string | ( | JSON_Object * | object, |
| const char * | name, | ||
| const char * | string ) |
Definition at line 2451 of file parson.c.
References json_object_set_string(), json_object_set_value(), json_value_free(), json_value_init_string(), and JSONSuccess.
Referenced by G_json_object_set_string(), and json_object_set_string().
| JSON_Status json_object_set_string_with_len | ( | JSON_Object * | object, |
| const char * | name, | ||
| const char * | string, | ||
| size_t | len ) |
Definition at line 2462 of file parson.c.
References json_object_set_string_with_len(), json_object_set_value(), json_value_free(), json_value_init_string_with_len(), and JSONSuccess.
Referenced by json_object_set_string_with_len().
| JSON_Status json_object_set_value | ( | JSON_Object * | object, |
| const char * | name, | ||
| JSON_Value * | value ) |
Definition at line 2405 of file parson.c.
References json_object_get_wrapping_value(), json_object_set_value(), json_value_free(), JSONFailure, JSONSuccess, NULL, and PARSON_FALSE.
Referenced by G_json_object_set_value(), json_object_dotset_value(), json_object_set_boolean(), json_object_set_null(), json_object_set_number(), json_object_set_string(), json_object_set_string_with_len(), and json_object_set_value().
| JSON_Value * json_parse_file | ( | const char * | filename | ) |
Definition at line 1575 of file parson.c.
References json_parse_file(), json_parse_string(), and NULL.
Referenced by json_parse_file().
| JSON_Value * json_parse_file_with_comments | ( | const char * | filename | ) |
Definition at line 1587 of file parson.c.
References json_parse_file_with_comments(), json_parse_string_with_comments(), and NULL.
Referenced by json_parse_file_with_comments().
| JSON_Value * json_parse_string | ( | const char * | string | ) |
Definition at line 1599 of file parson.c.
References json_parse_string(), and NULL.
Referenced by json_parse_file(), and json_parse_string().
| JSON_Value * json_parse_string_with_comments | ( | const char * | string | ) |
Definition at line 1610 of file parson.c.
References json_parse_string_with_comments(), and NULL.
Referenced by json_parse_file_with_comments(), and json_parse_string_with_comments().
| size_t json_serialization_size | ( | const JSON_Value * | value | ) |
Definition at line 2081 of file parson.c.
References json_serialization_size(), NULL, PARSON_FALSE, and PARSON_NUM_BUF_SIZE.
Referenced by json_serialization_size(), json_serialize_to_buffer(), and json_serialize_to_string().
| size_t json_serialization_size_pretty | ( | const JSON_Value * | value | ) |
Definition at line 2149 of file parson.c.
References json_serialization_size_pretty(), NULL, PARSON_NUM_BUF_SIZE, and PARSON_TRUE.
Referenced by json_serialization_size_pretty(), json_serialize_to_buffer_pretty(), and json_serialize_to_string_pretty().
| JSON_Status json_serialize_to_buffer | ( | const JSON_Value * | value, |
| char * | buf, | ||
| size_t | buf_size_in_bytes ) |
Definition at line 2090 of file parson.c.
References json_serialization_size(), json_serialize_to_buffer(), JSONFailure, JSONSuccess, NULL, and PARSON_FALSE.
Referenced by json_serialize_to_buffer(), and json_serialize_to_string().
| JSON_Status json_serialize_to_buffer_pretty | ( | const JSON_Value * | value, |
| char * | buf, | ||
| size_t | buf_size_in_bytes ) |
Definition at line 2158 of file parson.c.
References json_serialization_size_pretty(), json_serialize_to_buffer_pretty(), JSONFailure, JSONSuccess, NULL, and PARSON_TRUE.
Referenced by json_serialize_to_buffer_pretty(), and json_serialize_to_string_pretty().
| JSON_Status json_serialize_to_file | ( | const JSON_Value * | value, |
| const char * | filename ) |
Definition at line 2105 of file parson.c.
References json_free_serialized_string(), json_serialize_to_file(), json_serialize_to_string(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_serialize_to_file().
| JSON_Status json_serialize_to_file_pretty | ( | const JSON_Value * | value, |
| const char * | filename ) |
Definition at line 2173 of file parson.c.
References json_free_serialized_string(), json_serialize_to_file_pretty(), json_serialize_to_string_pretty(), JSONFailure, JSONSuccess, and NULL.
Referenced by json_serialize_to_file_pretty().
| char * json_serialize_to_string | ( | const JSON_Value * | value | ) |
Definition at line 2129 of file parson.c.
References json_free_serialized_string(), json_serialization_size(), json_serialize_to_buffer(), json_serialize_to_string(), JSONFailure, JSONSuccess, and NULL.
Referenced by G_json_serialize_to_string(), json_serialize_to_file(), and json_serialize_to_string().
| char * json_serialize_to_string_pretty | ( | const JSON_Value * | value | ) |
Definition at line 2197 of file parson.c.
References json_free_serialized_string(), json_serialization_size_pretty(), json_serialize_to_buffer_pretty(), json_serialize_to_string_pretty(), JSONFailure, JSONSuccess, and NULL.
Referenced by G_json_serialize_to_string_pretty(), json_serialize_to_file_pretty(), and json_serialize_to_string_pretty().
| void json_set_allocation_functions | ( | JSON_Malloc_Function | malloc_fun, |
| JSON_Free_Function | free_fun ) |
Definition at line 2830 of file parson.c.
References json_set_allocation_functions().
Referenced by json_set_allocation_functions().
| void json_set_escape_slashes | ( | int | escape_slashes | ) |
Definition at line 2837 of file parson.c.
References json_set_escape_slashes().
Referenced by json_set_escape_slashes().
| void json_set_float_serialization_format | ( | const char * | format | ) |
Definition at line 2842 of file parson.c.
References json_set_float_serialization_format(), and NULL.
Referenced by G_json_set_float_serialization_format(), and json_set_float_serialization_format().
| void json_set_number_serialization_function | ( | JSON_Number_Serialization_Function | func | ) |
Definition at line 2855 of file parson.c.
References json_set_number_serialization_function().
Referenced by json_set_number_serialization_function().
| const char * json_string | ( | const JSON_Value * | value | ) |
Definition at line 2810 of file parson.c.
References json_value_get_string().
| size_t json_string_len | ( | const JSON_Value * | value | ) |
Definition at line 2815 of file parson.c.
References json_string_len(), and json_value_get_string_len().
Referenced by json_string_len().
| JSON_Value_Type json_type | ( | const JSON_Value * | value | ) |
Definition at line 2795 of file parson.c.
References json_type(), and json_value_get_type().
Referenced by json_type().
| JSON_Status json_validate | ( | const JSON_Value * | schema, |
| const JSON_Value * | value ) |
Definition at line 2660 of file parson.c.
References count, json_array_get_count(), json_array_get_value(), json_object_get_count(), json_object_get_name(), json_object_get_value(), json_validate(), json_value_get_array(), json_value_get_object(), json_value_get_type(), JSONArray, JSONBoolean, JSONError, JSONFailure, JSONNull, JSONNumber, JSONObject, JSONString, JSONSuccess, and NULL.
Referenced by json_validate().
| JSON_Value * json_value_deep_copy | ( | const JSON_Value * | value | ) |
Definition at line 1986 of file parson.c.
References json_array_get_count(), json_array_get_value(), json_object_get_count(), json_object_get_name(), json_object_get_value(), json_value_deep_copy(), json_value_free(), json_value_get_array(), json_value_get_boolean(), json_value_get_number(), json_value_get_object(), json_value_get_type(), json_value_init_array(), json_value_init_boolean(), json_value_init_null(), json_value_init_number(), json_value_init_object(), JSONArray, JSONBoolean, JSONError, JSONFailure, JSONNull, JSONNumber, JSONObject, JSONString, JSONSuccess, and NULL.
Referenced by json_value_deep_copy().
| int json_value_equals | ( | const JSON_Value * | a, |
| const JSON_Value * | b ) |
Definition at line 2728 of file parson.c.
References json_array_get_count(), json_array_get_value(), json_object_get_count(), json_object_get_name(), json_object_get_value(), json_value_equals(), json_value_get_array(), json_value_get_boolean(), json_value_get_number(), json_value_get_object(), json_value_get_type(), JSONArray, JSONBoolean, JSONError, JSONNull, JSONNumber, JSONObject, JSONString, NULL, PARSON_FALSE, and PARSON_TRUE.
Referenced by json_value_equals().
| void json_value_free | ( | JSON_Value * | value | ) |
Definition at line 1868 of file parson.c.
References json_value_free(), json_value_get_type(), JSONArray, JSONObject, and JSONString.
Referenced by G_json_value_free(), json_array_append_boolean(), json_array_append_null(), json_array_append_number(), json_array_append_string(), json_array_append_string_with_len(), json_array_clear(), json_array_remove(), json_array_replace_boolean(), json_array_replace_null(), json_array_replace_number(), json_array_replace_string(), json_array_replace_string_with_len(), json_array_replace_value(), json_object_clear(), json_object_dotset_boolean(), json_object_dotset_null(), json_object_dotset_number(), json_object_dotset_string(), json_object_dotset_string_with_len(), json_object_dotset_value(), json_object_set_boolean(), json_object_set_null(), json_object_set_number(), json_object_set_string(), json_object_set_string_with_len(), json_object_set_value(), json_value_deep_copy(), and json_value_free().
| JSON_Array * json_value_get_array | ( | const JSON_Value * | value | ) |
Definition at line 1829 of file parson.c.
References json_value_get_array(), json_value_get_type(), JSONArray, and NULL.
Referenced by json_array(), json_array_get_array(), json_object_dotget_array(), json_object_get_array(), json_validate(), json_value_deep_copy(), json_value_equals(), and json_value_get_array().
| int json_value_get_boolean | ( | const JSON_Value * | value | ) |
Definition at line 1857 of file parson.c.
References json_value_get_boolean(), json_value_get_type(), and JSONBoolean.
Referenced by json_array_get_boolean(), json_boolean(), json_object_dotget_boolean(), json_object_get_boolean(), json_value_deep_copy(), json_value_equals(), and json_value_get_boolean().
| double json_value_get_number | ( | const JSON_Value * | value | ) |
Definition at line 1852 of file parson.c.
References json_value_get_number(), json_value_get_type(), and JSONNumber.
Referenced by json_array_get_number(), json_number(), json_object_dotget_number(), json_object_get_number(), json_value_deep_copy(), json_value_equals(), and json_value_get_number().
| JSON_Object * json_value_get_object | ( | const JSON_Value * | value | ) |
Definition at line 1823 of file parson.c.
References json_value_get_object(), json_value_get_type(), JSONObject, and NULL.
Referenced by G_json_value_get_object(), json_array_get_object(), json_object(), json_object_dotget_object(), json_object_dotget_value(), json_object_dotset_value(), json_object_get_object(), json_validate(), json_value_deep_copy(), json_value_equals(), and json_value_get_object().
| JSON_Value * json_value_get_parent | ( | const JSON_Value * | value | ) |
Definition at line 1863 of file parson.c.
References json_value_get_parent(), and NULL.
Referenced by json_value_get_parent().
| const char * json_value_get_string | ( | const JSON_Value * | value | ) |
Definition at line 1840 of file parson.c.
References json_value_get_string(), and NULL.
Referenced by json_array_get_string(), json_object_dotget_string(), json_object_get_string(), json_string(), and json_value_get_string().
| size_t json_value_get_string_len | ( | const JSON_Value * | value | ) |
Definition at line 1846 of file parson.c.
References json_value_get_string_len().
Referenced by json_array_get_string_len(), json_object_dotget_string_len(), json_object_get_string_len(), json_string_len(), and json_value_get_string_len().
| JSON_Value_Type json_value_get_type | ( | const JSON_Value * | value | ) |
Definition at line 1818 of file parson.c.
References json_value_get_type(), and JSONError.
Referenced by G_json_value_get_type(), json_object_dothas_value_of_type(), json_object_dotset_value(), json_object_has_value_of_type(), json_type(), json_validate(), json_value_deep_copy(), json_value_equals(), json_value_free(), json_value_get_array(), json_value_get_boolean(), json_value_get_number(), json_value_get_object(), and json_value_get_type().
| JSON_Value * json_value_init_array | ( | void | ) |
Definition at line 1902 of file parson.c.
References json_value_init_array(), JSONArray, and NULL.
Referenced by G_json_value_init_array(), json_value_deep_copy(), and json_value_init_array().
| JSON_Value * json_value_init_boolean | ( | int | boolean | ) |
Definition at line 1963 of file parson.c.
References json_value_init_boolean(), JSONBoolean, and NULL.
Referenced by json_array_append_boolean(), json_array_replace_boolean(), json_object_dotset_boolean(), json_object_set_boolean(), json_value_deep_copy(), and json_value_init_boolean().
| JSON_Value * json_value_init_null | ( | void | ) |
Definition at line 1975 of file parson.c.
References json_value_init_null(), JSONNull, and NULL.
Referenced by json_array_append_null(), json_array_replace_null(), json_object_dotset_null(), json_object_set_null(), json_value_deep_copy(), and json_value_init_null().
| JSON_Value * json_value_init_number | ( | double | number | ) |
Definition at line 1947 of file parson.c.
References IS_NUMBER_INVALID, json_value_init_number(), JSONNumber, and NULL.
Referenced by json_array_append_number(), json_array_replace_number(), json_object_dotset_number(), json_object_set_number(), json_value_deep_copy(), and json_value_init_number().
| JSON_Value * json_value_init_object | ( | void | ) |
Definition at line 1886 of file parson.c.
References json_value_init_object(), JSONObject, and NULL.
Referenced by G_json_value_init_object(), json_object_dotset_value(), json_value_deep_copy(), and json_value_init_object().
| JSON_Value * json_value_init_string | ( | const char * | string | ) |
Definition at line 1918 of file parson.c.
References json_value_init_string(), json_value_init_string_with_len(), and NULL.
Referenced by json_array_append_string(), json_array_replace_string(), json_object_dotset_string(), json_object_set_string(), and json_value_init_string().
| JSON_Value * json_value_init_string_with_len | ( | const char * | string, |
| size_t | length ) |
Definition at line 1926 of file parson.c.
References json_value_init_string_with_len(), and NULL.
Referenced by json_array_append_string_with_len(), json_array_replace_string_with_len(), json_object_dotset_string_with_len(), json_object_set_string_with_len(), json_value_init_string(), and json_value_init_string_with_len().