DDraceNetwork Docs
json.cpp File Reference
#include <base/system.h>
#include <engine/shared/json.h>
Include dependency graph for json.cpp:

Functions

const struct _json_value * json_object_get (const json_value *pObject, const char *pIndex)
 
const struct _json_value * json_array_get (const json_value *pArray, int Index)
 
int json_array_length (const json_value *pArray)
 
const char * json_string_get (const json_value *pString)
 
int json_int_get (const json_value *pInteger)
 
int json_boolean_get (const json_value *pBoolean)
 
static char EscapeJsonChar (char c)
 
char * EscapeJson (char *pBuffer, int BufferSize, const char *pString)
 
const char * JsonBool (bool Bool)
 

Function Documentation

◆ EscapeJson()

char * EscapeJson ( char *  pBuffer,
int  BufferSize,
const char *  pString 
)

◆ EscapeJsonChar()

static char EscapeJsonChar ( char  c)
static

◆ json_array_get()

const struct _json_value * json_array_get ( const json_value pArray,
int  Index 
)

◆ json_array_length()

int json_array_length ( const json_value pArray)

◆ json_boolean_get()

int json_boolean_get ( const json_value pBoolean)

◆ json_int_get()

int json_int_get ( const json_value pInteger)

◆ json_object_get()

const struct _json_value * json_object_get ( const json_value pObject,
const char *  pIndex 
)

◆ json_string_get()

const char * json_string_get ( const json_value pString)

◆ JsonBool()

const char * JsonBool ( bool  Bool)