提交 300389f3 编写于 作者: wmmhello's avatar wmmhello

TD-6129<feature> support null true false for json tag

上级 2622553b
......@@ -5292,6 +5292,14 @@ char* parseTagDatatoJson(void *p){
goto end;
}
cJSON_AddItemToObject(json, tagJsonKey, value);
}else if (type == TSDB_DATA_TYPE_BOOL) {
char jsonVd = *(char*)(realData);
cJSON* value = cJSON_CreateBool(jsonVd);
if (value == NULL)
{
goto end;
}
cJSON_AddItemToObject(json, tagJsonKey, value);
}
else{
tscError("unsupportted json value");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册