Skip to main content

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

ParameterType
pathsreadonly string[]

Returns

| { columns: string[]; format: "csv"; } | { format: "json"; paths: string[]; } | null