Skip to content

structure arrays imported as cell arrays #22

Closed
@ntholling

Description

In demo_jsonlab_basic.m, lines 133-141, the demo creates a 3 element structure array, exports it to json, and then imports it back to a MATLAB variable (json2data). However, it does not work as intended. json2data is a cell array with three structures instead of a three-element structure array. It is easily transformed by:
json2data = cell2mat(json2data);
_assuming _ the structures all have the same fields. Unfortunately, I do not have the time to chase down the root cause of the issue, but I thought you should know.
Thanks for a very handy utility!
-Nathaniel

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