JavaScript Object Notation | jsonencode >> |
res = jsondecode(json_str) |
a json string.
a nelson variable converted from JSON.
jsondecode converts JSON object field names to Nelson structure field names
field1 = 'f1'; value1 = zeros(1,10);
field2 = 'f2'; value2 = {'a', 'b'};
field3 = 'f3'; value3 = {pi, pi*pi};
field4 = 'f4'; value4 = {'fourth'};
s = struct(field1,value1,field2,value2,field3,value3,field4,value4)
r = jsonencode(s)
r2 = jsondecode(r)
jsondecode(fileread([modulepath('json'), '/examples/patient.json']))
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET