parser json BUGFIX set return value
diff --git a/src/parser_json.c b/src/parser_json.c
index 11b6065..71d6efc 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -1506,6 +1506,7 @@
         }
     } else {
         /* error */
+        rc = r;
         goto cleanup;
     }