parser json BUGFIX condition typo
diff --git a/src/parser_json.c b/src/parser_json.c
index 3abb1b5..abeb120 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -394,7 +394,7 @@
 
                 if (snode) {
                     /* we have the key, validate the value */
-                    if ((status < LYJSON_NUMBER) && (status > LYJSON_NULL)) {
+                    if ((status < LYJSON_NUMBER) || (status > LYJSON_NULL)) {
                         /* not a terminal */
                         rc = LY_ENOT;
                         goto cleanup;