2018-12-12 08:59:42 +00:00
|
|
|
#ifndef ENGINE_SHARED_JSON_H
|
|
|
|
#define ENGINE_SHARED_JSON_H
|
|
|
|
|
2020-01-01 19:07:04 +00:00
|
|
|
#include <engine/external/json-parser/json.h>
|
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
const struct _json_value *json_object_get(const json_value *object, const char *index);
|
|
|
|
const struct _json_value *json_array_get(const json_value *array, int index);
|
|
|
|
int json_array_length(const json_value *array);
|
|
|
|
const char *json_string_get(const json_value *string);
|
|
|
|
int json_int_get(const json_value *integer);
|
|
|
|
int json_boolean_get(const json_value *boolean);
|
2020-01-01 19:07:04 +00:00
|
|
|
|
2018-12-12 08:59:42 +00:00
|
|
|
char *EscapeJson(char *pBuffer, int BufferSize, const char *pString);
|
|
|
|
const char *JsonBool(bool Bool);
|
|
|
|
|
|
|
|
#endif // ENGINE_SHARED_JSON_H
|