varToCf
Converts a var value to CF format string.
Handles all var.Type values: NULL, BOOL, all integer types, all float types, STRING, ARRAY, OBJECT, and the temporal types (DATE, TIME, DATETIME, SYSTIME, DURATION).
Top-level objects are written as bare key-value pairs (HCL/CF style) without enclosing braces. Nested objects use `{...}` notation.
Parameters
v | The var value to serialize. |
config | Optional writer configuration. |
Returns
A CF formatted string.