Skip to content

print_xsv

Prints a record as a delimited sequence of values.

print_xsv(input:record, field_separator=str, list_separator=str, null_value=str) -> string

The parse_xsv function prints a record’s values as delimiter separated string.

The following table lists existing XSV configurations:

FormatField SeparatorList SeparatorNull Value
csv,;empty
ssv<space>,-
tsv\t,-

The string separating different fields.

The string separating different elements in a list within a single field.

The string denoting an absent value.

from {
x:1,
y:true,
z: "String",
}
output = this.print_xsv(
field_separator=",",
list_selarator=";",
null_value="null")
{
x: 1,
y: true,
z: "String",
output: "1,true,String",
}

parse_xsv, write_xsv