DDNet documentation
Loading...
Searching...
No Matches
json.h
Go to the documentation of this file.
1#ifndef ENGINE_SHARED_JSON_H
2#define ENGINE_SHARED_JSON_H
3
4#include <engine/external/json-parser/json.h>
5
6json_value *JsonParse(const json_char *pJson, size_t Length);
7json_value *JsonParseEx(json_settings *pSettings, const json_char *pJson, size_t Length, char *pError);
8
9const struct _json_value *json_object_get(const json_value *pObject, const char *pIndex);
10const struct _json_value *json_array_get(const json_value *pArray, int Index);
11int json_array_length(const json_value *pArray);
12const char *json_string_get(const json_value *pString);
13int json_int_get(const json_value *pInteger);
14int json_boolean_get(const json_value *pBoolean);
15
16char *EscapeJson(char *pBuffer, int BufferSize, const char *pString);
17const char *JsonBool(bool Bool);
18
19#endif // ENGINE_SHARED_JSON_H
struct _json_value json_value
Definition serverbrowser.h:18
const struct _json_value * json_object_get(const json_value *pObject, const char *pIndex)
Definition json.cpp:69
json_value * JsonParseEx(json_settings *pSettings, const json_char *pJson, size_t Length, char *pError)
Definition json.cpp:50
const char * json_string_get(const json_value *pString)
Definition json.cpp:96
int json_boolean_get(const json_value *pBoolean)
Definition json.cpp:106
int json_array_length(const json_value *pArray)
Definition json.cpp:91
json_value * JsonParse(const json_char *pJson, size_t Length)
Definition json.cpp:35
const struct _json_value * json_array_get(const json_value *pArray, int Index)
Definition json.cpp:83
char * EscapeJson(char *pBuffer, int BufferSize, const char *pString)
Definition json.cpp:126
const char * JsonBool(bool Bool)
Definition json.cpp:171
int json_int_get(const json_value *pInteger)
Definition json.cpp:101