parser json BUGFIX handle invalid JSON in nested ext parsing
diff --git a/src/parser_json.c b/src/parser_json.c
index 49fd941..c9fc573 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -214,6 +214,10 @@
         if ((in_start.current[0] == '\"') && (in_start.current[-1] != '\\')) {
             ++quot_count;
         }
+        if (in_start.current == in_start.start) {
+            /* invalid JSON */
+            return LY_ENOT;
+        }
     } while (quot_count < 2);
 
     /* check if there are any nested extension instances */