data FEATURE printer for YANG data in JSON format
diff --git a/tools/lint/commands.c b/tools/lint/commands.c
index 0ff821b..3c7cf01 100644
--- a/tools/lint/commands.c
+++ b/tools/lint/commands.c
@@ -647,7 +647,7 @@
         } else {
 #endif
 
-            lyd_parse_data(ctx, in, 0, opts, 0, &data);
+            lyd_parse_data(ctx, in, 0, opts, LYD_VALIDATE_PRESENT, &data);
 #if 0
         }
     }
@@ -734,12 +734,10 @@
         case 'f':
             if (!strcmp(optarg, "xml")) {
                 outformat = LYD_XML;
-#if 0
             } else if (!strcmp(optarg, "json")) {
                 outformat = LYD_JSON;
             } else if (!strcmp(optarg, "lyb")) {
                 outformat = LYD_LYB;
-#endif
             } else {
                 fprintf(stderr, "Unknown output format \"%s\".\n", optarg);
                 goto cleanup;