From 878fde5df9516451e3b5344fbcc026425826d276 Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Thu, 16 Jun 2022 10:49:33 +0800 Subject: [PATCH] Set the default value for the null json --- kubernetes/model/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/model/object.c b/kubernetes/model/object.c index 9606d41d..ff293bcd 100644 --- a/kubernetes/model/object.c +++ b/kubernetes/model/object.c @@ -28,7 +28,7 @@ cJSON *object_convertToJSON(object_t *object) { } if (!object->temporary) { - return cJSON_Parse("{}"); + return cJSON_Parse("null"); } return cJSON_Parse(object->temporary);