Skip to content

Error parsing array #31

@toloko

Description

@toloko

In a JSON file, when using array notation (without quotes), only the first value is parsed. When trying to parse:

{ "value" : [3:10] }

value will evaluate to 3. This problem is related to 'sscanf' function in line 179 from loadjson.m:
[obj, count, errmsg, nextidx]=sscanf(astr,'%f,',[1,inf]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions