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 ? "," : "");