diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index f1e5ad529896b7a8912ed3d6e31ea7d186e5f3c3..4193cbf3cfce70b038bfadf3f77ef3bf5543c422 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -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");