(in json.h, dc54ba5) line 1363: `toks = (toks + 1) + toks[1].sub;` should be `toks = (toks + 2) + toks[1].sub;` When there are nested objects or arrays, the pointer was not jumping to the actual next key/val pair.