Skip to content

Commit 878fde5

Browse files
committed
Set the default value for the null json
1 parent dcc3d8a commit 878fde5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubernetes/model/object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cJSON *object_convertToJSON(object_t *object) {
2828
}
2929

3030
if (!object->temporary) {
31-
return cJSON_Parse("{}");
31+
return cJSON_Parse("null");
3232
}
3333

3434
return cJSON_Parse(object->temporary);

0 commit comments

Comments
 (0)