Function.jsonSourceStructure
function jsonSourceStructure(paths: readonly string[]):
| {
columns: string[];
format: "csv";
}
| {
format: "json";
paths: string[];
}
| null;
Canonical structure of a JSON sample from its extracted leaf JSONPaths, or null when nothing was extracted.
Parameters
| Parameter | Type |
|---|---|
paths | readonly string[] |
Returns
| {
columns: string[];
format: "csv";
}
| {
format: "json";
paths: string[];
}
| null