Back to index

libcitadel  8.12
Classes | Defines | Functions
json.c File Reference
#include "sysdep.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include "libcitadel.h"

Go to the source code of this file.

Classes

struct  JsonValue

Defines

#define JSON_STRING   0
#define JSON_NUM   1
#define JSON_NULL   2
#define JSON_BOOL   3
#define JSON_ARRAY   4
#define JSON_OBJECT   7

Functions

void DeleteJSONValue (void *vJsonValue)
JsonValueNewJsonObject (const char *Key, long keylen)
JsonValueNewJsonArray (const char *Key, long keylen)
JsonValueNewJsonNumber (const char *Key, long keylen, long Number)
JsonValueNewJsonBigNumber (const char *Key, long keylen, double Number)
JsonValueNewJsonString (const char *Key, long keylen, StrBuf *CopyMe)
JsonValueNewJsonPlainString (const char *Key, long keylen, const char *CopyMe, long len)
JsonValueNewJsonNull (const char *Key, long keylen)
JsonValueNewJsonBool (const char *Key, long keylen, int value)
void JsonArrayAppend (JsonValue *Array, JsonValue *Val)
void JsonObjectAppend (JsonValue *Array, JsonValue *Val)
void SerializeJson (StrBuf *Target, JsonValue *Val, int FreeVal)