Rev 1 as of 4.3.15: Initial version
Rev 2 as of 4.3.15: added arrays of strings that are defined by e.g.
Rev 3 as of 17.3.15: added support for vectors
a.Field1 = 2;
a.Field2 = "jkh";
a.Field3 = 1.2;
a.F3.name = "Joe";
a.F3.age = 32;
//a.F3.data = [1,2];
a.vector = [1,2,3,4.5];
jsonstr = struct2json(a);
Warning: For strings make sure you escape the special characters that are
used by the JSON-format!
Maybe the precision of float values can be adjusted by the command