17 "title" :
"Table Format",
18 "description" :
"A text format for information structured in rows and columns",
22 "VuoList_VuoTableFormat"
34 const char *valueAsString =
"";
35 if (json_object_get_type(js) == json_type_string)
36 valueAsString = json_object_get_string(js);
40 if (! strcmp(valueAsString,
"csv")) {
41 value = VuoTableFormat_Csv;
42 }
else if (! strcmp(valueAsString,
"tsv")) {
43 value = VuoTableFormat_Tsv;
55 char *valueAsString =
"";
58 case VuoTableFormat_Csv:
59 valueAsString =
"csv";
61 case VuoTableFormat_Tsv:
62 valueAsString =
"tsv";
66 return json_object_new_string(valueAsString);
86 char *valueAsString =
"";
89 case VuoTableFormat_Csv:
90 valueAsString =
"CSV (comma-separated)";
92 case VuoTableFormat_Tsv:
93 valueAsString =
"TSV (tab-separated)";
97 return strdup(valueAsString);