type of item
string to serialize struct data to
item to append
(optional) an array of timestamp field names
true if individual whitespace or unprintable character fields should be serialized into a friendlier string representation, e.g. tab character into '\t' (defaults to false)
Convenience method to serialize a struct.
If a field name of a struct matches one of the names in the timestamp_fields array and implicitly converts to ulong an ISO formatted string will be emitted in parentheses next to the value of the field (which is assumed to be a unix timestamp).