Skip to content

json.h: json_obj_next() increments incorrectly if there is nesting #50

@enemymouse

Description

@enemymouse

(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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions