-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single map inside a list, list is not preserved #15
Comments
👍 Changing line 188 and 219 (replacing |
Thanks. It works for me as well. Any chance to have the following file preserved after load-and-store? {
"test1":[0],
"test2":1
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the following simple json-file that does not remain the same if you read it using loadjson and then store it with savejson (using the master branch and Matlab 2014b).
The '[]' brackets are removed. I know that arrays with single elements is quite problematic in Matlab, but it looks like you now, compared to older versions, are able to create a cell-array holding a single struct. At least that is what I see printed in the console after loading the example file.
Would it be possible to use this information when storing the json file to preserve the single element list?
The text was updated successfully, but these errors were encountered: