Skip to content

loadjson sensitive to tabs in whitespace? #30

@lebedov

Description

@lebedov

It seems that the presence of tabs in a JSON file can cause loadjson() to load certain files differently. Using revision f8def3d of jsonlab with either MATLAB R2016a or Octave 4.2.0, loading foo.json from files.zip (which contains tabs) using data = loadjson('foo.json') causes data.a.b.c to be created as a cell array, while loading bar.json (which contains only spaces) causes data.a.b.c to be created as a matrix. Shouldn't c always be created as a matrix regardless of the whitespace?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions