14 Field object with attributes for title, datatype, formatting
15 title: field name. Cannot use special characters
16 datatype: field datatype (string, int, real, bool, date)
17 fmt_strcase: for datatype=string, optionally specifies a value is upper or lower case. (upper,lower,"")
18 fmt_strlen: for datatype=string, optionally specifies a required integer length (1-n). If value < 1 then this is ignored.
19 fmt_strcut: for datatype= string when strlen>0 and value length larger then chars removed from either front or back. Default is back (front,back)
20 fmt_strpad: for datatype= string when strlen>0 and value length shorter then chars added to either front or back. Default is back (front,back)
21 fmt_strpadchar: for datatype= string when padding uses this character. Must be 1 character or use one of names (space, fslash, bslash, tab). Default is _
22 fmt_decimal: for datatype=real, optionally specifies a required integer number of decimal places (0-n)
23 fmt_date: for datatype=date, optionally specifies a required date format as one of-
105 make JSON of object as {"covalue":{"title":"xxxx","field1":field1,"field2":field2,"field3":field3,"field1_index":field1_index,"field2_index":field2_index,"field3_index":field3_index, "numfields":numfields}}