Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ const char *JsonObjectGetAsString(JsonElement *object, const char *key)
return childPrimitive->primitive.value;
}

return NULL;
return "";
}

JsonElement *JsonObjectGetAsObject(JsonElement *object, const char *key)
Expand Down Expand Up @@ -373,7 +373,7 @@ const char *JsonArrayGetAsString(JsonElement *array, size_t index)
return childPrimitive->primitive.value;
}

return NULL;
return "";
}

JsonElement *JsonArrayGetAsObject(JsonElement *array, size_t index)
Expand Down Expand Up @@ -584,7 +584,7 @@ static const char *JsonParseAsString(const char **data)
}

CfDebug("Unable to parse json data as string, did not end with doublequote: %s", *data);
return NULL;
return "";
}

static JsonElement *JsonParseAsArray(const char **data)
Expand Down