CSV Dialect Description Format
From Just Solve the File Format Problem
(Difference between revisions)
Ross-spencer (Talk | contribs) (Provide JSON example) |
Ross-spencer (Talk | contribs) (Delineate examples) |
||
| Line 6: | Line 6: | ||
== Examples == | == Examples == | ||
| + | |||
| + | === 1.0 === | ||
<pre> | <pre> | ||
| Line 17: | Line 19: | ||
"skipinitialspace": false | "skipinitialspace": false | ||
} | } | ||
| + | } | ||
| + | </pre> | ||
| + | |||
| + | === 1.2 === | ||
| + | |||
| + | <pre> | ||
| + | { | ||
| + | "csvddfVersion": 1.2, | ||
| + | "delimiter": ",", | ||
| + | "doubleQuote": true, | ||
| + | "lineTerminator": "\r\n", | ||
| + | "quoteChar": "\"", | ||
| + | "skipInitialSpace": true, | ||
| + | "header": true | ||
} | } | ||
</pre> | </pre> | ||
Revision as of 19:33, 16 April 2025
CSV Dialect Dscription Format is a JSON-based format for describing the particular rules for a variety of delimited files, such as CSV or tab delimited. It does not describe the format of the data fields within a record of the file; this may be done with JSON Table Schema or CSV Schema.
Contents |
Examples
1.0
{
"csvddf_version": 1.0,
"dialect": {
"delimiter": ",",
"doublequote": false,
"lineterminator": "\r\n",
"quotechar": "\"",
"skipinitialspace": false
}
}
1.2
{
"csvddfVersion": 1.2,
"delimiter": ",",
"doubleQuote": true,
"lineTerminator": "\r\n",
"quoteChar": "\"",
"skipInitialSpace": true,
"header": true
}