forked from loafle/openapi-generator-original
[C][Client] Set the default value for the null json (#12620)
This commit is contained in:
parent
8b7736501d
commit
bcb5f55a2d
@ -28,7 +28,7 @@ cJSON *object_convertToJSON(object_t *object) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!object->temporary) {
|
if (!object->temporary) {
|
||||||
return cJSON_Parse("{}");
|
return cJSON_Parse("null");
|
||||||
}
|
}
|
||||||
|
|
||||||
return cJSON_Parse(object->temporary);
|
return cJSON_Parse(object->temporary);
|
||||||
|
@ -28,7 +28,7 @@ cJSON *object_convertToJSON(object_t *object) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!object->temporary) {
|
if (!object->temporary) {
|
||||||
return cJSON_Parse("{}");
|
return cJSON_Parse("null");
|
||||||
}
|
}
|
||||||
|
|
||||||
return cJSON_Parse(object->temporary);
|
return cJSON_Parse(object->temporary);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user