DDraceNetwork 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
6const struct _json_value *json_object_get(const json_value *pObject, const char *pIndex);
7const struct _json_value *json_array_get(const json_value *pArray, int Index);
8int json_array_length(const json_value *pArray);
9const char *json_string_get(const json_value *pString);
10int json_int_get(const json_value *pInteger);
11int json_boolean_get(const json_value *pBoolean);
12
13char *EscapeJson(char *pBuffer, int BufferSize, const char *pString);
14const char *JsonBool(bool Bool);
15
16#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:5
const char * json_string_get(const json_value *pString)
Definition json.cpp:32
int json_boolean_get(const json_value *pBoolean)
Definition json.cpp:42
int json_array_length(const json_value *pArray)
Definition json.cpp:27
const struct _json_value * json_array_get(const json_value *pArray, int Index)
Definition json.cpp:19
char * EscapeJson(char *pBuffer, int BufferSize, const char *pString)
Definition json.cpp:62
const char * JsonBool(bool Bool)
Definition json.cpp:106
int json_int_get(const json_value *pInteger)
Definition json.cpp:37