commit | 5b315a99e14180ff1d5104a4a1d661e2bc2a38b9 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Fri Jul 10 13:18:45 2015 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Fri Jul 10 13:18:45 2015 +0200 |
tree | 81e1dda439ff535aa02fd2481268f9f9fabe0d4c | |
parent | b54bcb1e93a9c4d889b29a6829ff6e45e984ec69 [diff] [blame] |
data parser FEATURE enumeration type support for leafs/leaf-lists
diff --git a/src/printer/json.c b/src/printer/json.c index bd6c697..fb36e23 100644 --- a/src/printer/json.c +++ b/src/printer/json.c
@@ -199,6 +199,9 @@ case LY_TYPE_EMPTY: fprintf(f, "[null]%s\n", node->next ? "," : ""); break; + case LY_TYPE_ENUM: + fprintf(f, "\"%s\"%s\n", leaf->value.enm->name, node->next ? "," : ""); + break; default: /* TODO */ fprintf(f, "%s%s\n", "\"TBD\"", node->next ? "," : "");