Loads the value of a JSON format struct to the Script Workspace.
|
Syntax |
Description |
|---|---|
|
jsonloads(str); |
"str" is a JSON format string. Returns the struct to the Script Workspace. |
Example
The following code example shows how to load the struct "a" defined by a JSON format string to the Script Workspace.
jsonloads('{"a" : ["b", 2, 3]}');
The output result looks like:
?a;
result:
Cell array with 3 elements
?a{1};
result:
b
?a{2};
result: 2
?a{3};
result: 3
See Also
jsonsave , jsonload , jsonsaves , JSON files