Attempted fix for #298 (reading nested JSON fail)

This commit is contained in:
Rob Giseburt
2017-10-27 13:59:48 -05:00
parent 6519a2fb96
commit 7802e351e7
+3 -1
View File
@@ -116,7 +116,9 @@ void json_parse_for_exec(char *str, bool execute)
static stat_t _json_parser_execute(nvObj_t *nv) {
do {
if (nv->valuetype == TYPE_NULL) { // means GET the value
if (nv->valuetype == TYPE_PARENT) {
// anything?
} else if (nv->valuetype == TYPE_NULL) { // means GET the value
ritorno(nv_get(nv)); // ritorno returns w/status on any errors
if (nv->valuetype == TYPE_PARENT) { // This will be true if you read a group. Exit now
return (STAT_OK);