Skip to content

Commit

Permalink
json_value: array bool
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzeroz committed Nov 7, 2024
1 parent aee8160 commit d20b810
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/neuron/msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,13 @@ static inline void neu_tag_value_to_json(neu_resp_tag_value_meta_t *tag_value,
tag_json->value.val_array_uint8.u8s =
tag_value->value.value.bytes.bytes;
break;
case NEU_TYPE_ARRAY_BOOL:
tag_json->t = NEU_JSON_ARRAY_BOOL;
tag_json->value.val_array_bool.length =
tag_value->value.value.bools.length;
tag_json->value.val_array_bool.bools =
tag_value->value.value.bools.bools;
break;
case NEU_TYPE_ARRAY_INT8:
tag_json->t = NEU_JSON_ARRAY_INT8;
tag_json->value.val_array_int8.length =
Expand Down Expand Up @@ -1190,6 +1197,13 @@ neu_tag_value_to_json_paginate(neu_resp_tag_value_meta_paginate_t *tag_value,
tag_json->value.val_array_uint8.u8s =
tag_value->value.value.bytes.bytes;
break;
case NEU_TYPE_ARRAY_BOOL:
tag_json->t = NEU_JSON_ARRAY_BOOL;
tag_json->value.val_array_bool.length =
tag_value->value.value.bools.length;
tag_json->value.val_array_bool.bools =
tag_value->value.value.bools.bools;
break;
case NEU_TYPE_ARRAY_INT8:
tag_json->t = NEU_JSON_ARRAY_INT8;
tag_json->value.val_array_int8.length =
Expand Down

0 comments on commit d20b810

Please sign in to comment.