-
Notifications
You must be signed in to change notification settings - Fork 116
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
null
converted to []
#91
Comments
matlab does not have a built-in data structure that is equivalent to if you run matlab's built-in
|
Yes, the problems I was running into with the built-in JSON functions are actually the reason I've started using JSONLab. Wouldn't it be possible to create a custom class to act as json null type? |
here is my solution, committed as https://github.com/fangq/jsonlab/commit/747c99b5d434ce9f90097ddc0ad98bf1d5d45964
this should give you what you want, i.e.
|
JSON
null
values are not round-tripped. For example, thissavejson(loadjson('{"myNullValue": null}'))
results in:The problem appears to be here: https://github.com/fangq/jsonlab/blob/cf573262eb12c1d1dc3668913c1f902e3452f566/loadjson.m#L560
The text was updated successfully, but these errors were encountered: