libdas2
das2 core C utilities
|
Sheredom's json.h parser with global symbol name changes. More...
Sheredom's json.h parser with global symbol name changes.
The upstream version of this file can be found on GitHub at https://github.com/sheredom/json.h
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | das_json_str |
A JSON string value. More... | |
struct | das_json_str_ex |
A JSON string value (extended) More... | |
struct | das_json_num |
A JSON number value. More... | |
struct | das_json_dict_el |
An element of a JSON dictionary. More... | |
struct | das_json_dict |
a JSON dictionary payload More... | |
struct | das_json_ary_el |
an element of a JSON array More... | |
struct | das_json_ary |
a JSON array value More... | |
struct | DasJdo |
JSON Dom Element. More... | |
struct | das_json_val_ex |
a JSON value (extended) More... | |
struct | das_json_parse_result_s |
error report from json_parse_ex() More... | |
Functions | |
const char * | json_parse_error_info (const struct das_json_parse_result_s *pRes, char *sTmp, size_t uLen) |
Provide error string describing a parsing error result. | |
DasJdo * | das_json_parse_ex (const void *src, size_t src_size, size_t flags_bitset, void *(*alloc_func_ptr)(void *, size_t), void *user_data, struct das_json_parse_result_s *result) |
Parse a JSON text file, returning a pointer to the root of the JSON structure. More... | |
DasJdo * | das_json_parse (const void *src, size_t src_size) |
Parse a JSON text file with default options and without detailed error reporting. More... | |
const das_json_dict_el * | DasJdo_dictFirst (const DasJdo *pThis) |
Get the first dictionary element from a JSON dictionary. | |
const das_json_ary_el * | DasJdo_aryFirst (const DasJdo *pThis) |
Get the first array element from a JSON array. | |
const char * | DasJdo_string (const DasJdo *pThis) |
Get a string value from a JSON DOM element. More... | |
void * | DasJdo_writePretty (const DasJdo *pThis, const char *indent, const char *newline, size_t *out_size) |
Write out a pretty JSON utf-8 string. More... | |