JSONConnector throws when a nested column path is missing
Author: OskarEichlerCreated Aug 30, 2026Updated Sep 26, 2026
LabelsType: BugProduct: HighchartsStatus: Pending replyStatus: Stale
Expected behaviour
When object-row JSON uses a nested columnIds path and one row lacks an intermediate property, that row should remain aligned and produce an empty cell for the missing value.
Actual behaviour
The path reducer unconditionally indexes every intermediate accumulator. A row without the nested object throws instead of loading, so partially populated JSON datasets cannot be converted.
Live demo with steps to reproduce
const connector = new DataConnector.types.JSON({
columnIds: { id: ['id'], score: ['metrics', 'score'] },
data: [
{ id: 1, metrics: { score: 5 } },
{ id: 2 }
],
firstRowAsNames: false
});
await connector.load();Loading throws while traversing the second row instead of producing score: [5, undefined].
Product version
Highcharts master 48b5b3e99a0fa9aae9a357165a5a916f504afeca / 13.0.2
Affected browser(s)
All JavaScript environments.
Source: highcharts/highcharts