35 #ifndef REGIFY_UTIL_JSON_H
36 #define REGIFY_UTIL_JSON_H
45 #define RU_JSON_PRETTIFY 0x01
46 #define RU_JSON_ESCAPE_SLASH 0x02
RUAPI rusize ruJsonArrayLen(ruJson rj, int32_t *status)
RUAPI int32_t ruJsonWrite(ruJson rj, perm_chars *output)
RUAPI int64_t ruJsonKeyParseInt(ruJson rj, trans_chars key, int32_t *status)
RUAPI bool ruJsonBool(ruJson rj, int32_t *status)
RUAPI double ruJsonIdxDouble(ruJson rj, rusize index, int32_t *status)
RUAPI int32_t ruJsonSetKeyInt(ruJson rj, trans_chars key, int64_t val)
RUAPI bool ruJsonParseBool(ruJson rj, int32_t *status)
RUAPI perm_chars ruJsonIdxStr(ruJson rj, rusize index, int32_t *status)
RUAPI int32_t ruJsonStartKeyArray(ruJson rj, trans_chars key)
RUAPI ruJson ruJsonKeyArray(ruJson rj, trans_chars key, int32_t *status)
RUAPI int32_t ruJsonStartMap(ruJson rj)
RUAPI int64_t ruJsonIdxParseInt(ruJson rj, rusize index, int32_t *status)
RUAPI int32_t ruJsonSetKeyDouble(ruJson rj, trans_chars key, double val)
RUAPI int64_t ruJsonKeyInt(ruJson rj, trans_chars key, int32_t *status)
RUAPI ruJson ruJsonParse(trans_chars jsonStr, int32_t *status)
RUAPI int32_t ruJsonEndMap(ruJson rj)
RUAPI alloc_chars ruJsonKeyToStr(ruJson rj, trans_chars key, int32_t *status)
RUAPI bool ruJsonKeyBool(ruJson rj, trans_chars key, int32_t *status)
RUAPI bool ruJsonIdxParseBool(ruJson rj, rusize index, int32_t *status)
RUAPI double ruJsonKeyDouble(ruJson rj, trans_chars key, int32_t *status)
RUAPI int64_t ruJsonInt(ruJson rj, int32_t *status)
RUAPI int32_t ruJsonSetStr(ruJson rj, trans_chars val)
RUAPI int32_t ruJsonEndArray(ruJson rj)
RUAPI ruJson ruJsonKeyMap(ruJson rj, trans_chars key, int32_t *status)
RUAPI bool ruJsonKeyParseBool(ruJson rj, trans_chars key, int32_t *status)
RUAPI ruJson ruJsonStart(bool map)
RUAPI int32_t ruJsonSetInt(ruJson rj, int64_t val)
RUAPI bool ruJsonIdxBool(ruJson rj, rusize index, int32_t *status)
RUAPI ruList ruJsonKeys(ruJson rj, int32_t *status)
Returns an ruList of keys in the current map.
RUAPI alloc_chars ruJsonIdxStrDup(ruJson rj, rusize index, int32_t *status)
RUAPI ruJson ruJsonNew(int32_t flags, trans_chars ident)
RUAPI int32_t ruJsonSetDouble(ruJson rj, double val)
RUAPI int32_t ruJsonSetKeyStr(ruJson rj, trans_chars key, trans_chars val)
void * ruJson
An opaque type representing a JSON object.
Definition: json.h:43
RUAPI perm_chars ruJsonKeyStr(ruJson rj, trans_chars key, int32_t *status)
RUAPI ruJson ruJsonIdxArray(ruJson rj, rusize index, int32_t *status)
RUAPI perm_chars ruJsonStr(ruJson rj, int32_t *status)
RUAPI ruJson ruJsonIdxMap(ruJson rj, rusize index, int32_t *status)
RUAPI int64_t ruJsonParseInt(ruJson rj, int32_t *status)
RUAPI alloc_chars ruJsonKeyStrDup(ruJson rj, trans_chars key, int32_t *status)
RUAPI ruJson ruJsonFree(ruJson rj)
RUAPI int64_t ruJsonIdxInt(ruJson rj, rusize index, int32_t *status)
RUAPI int32_t ruJsonStartKeyMap(ruJson rj, trans_chars key)
RUAPI int32_t ruJsonStartArray(ruJson rj)
void * ruList
Opaque pointer to list object. See List Collection.
Definition: list.h:103
const char * trans_chars
A transient NULL terminated string pointer.
Definition: regify-util.h:186
const char * perm_chars
A permanent NULL terminated string pointer.
Definition: regify-util.h:176
char * alloc_chars
An allocated NULL terminated string pointer.
Definition: regify-util.h:199
size_t rusize
Abstracted version of size_t.
Definition: regify-util.h:338