Ret = (JsonValue*) malloc(sizeof(JsonValue));
memset(Ret, 0, sizeof(JsonValue));
Ret->Type = JSON_NULL;
- if (Key != NULL)
- {
+ if (Key != NULL) {
Ret->Name = NewStrBufPlain(Key, keylen);
}
Ret->Value = NewStrBufPlain(HKEY("nulll"));
const char *Key;
long keylen;
-
- switch (Val->Type)
- {
+ switch (Val->Type) {
case JSON_STRING:
StrBufAppendBufPlain(Target, HKEY("\""), 0);
StrECMAEscAppend(Target, Val->Value, NULL);