Skip to content

Commit

Permalink
Set the default value for the null json
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuhui committed Jun 16, 2022
1 parent dcc3d8a commit 878fde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/model/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 878fde5

Please sign in to comment.