Skip to content

Commit 595d9f0

Browse files
#151 default to json in data.view getData() load if no matching file ext. found
1 parent a93c694 commit 595d9f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/data.view.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,6 @@
534534
case '.ini':
535535
case '.yaml':
536536
case '.yml':
537-
case '.json':
538537
case '.json5':
539538
case '.hjson':
540539
// pass through loaded data json
@@ -550,6 +549,11 @@
550549
// TODO: add parquet data read
551550
console.info('data.preview:\n\n Parquet data format support coming soon!');
552551
break;
552+
default: // json
553+
// pass through loaded data json
554+
tableData = data;
555+
logMessage(`getData()\n\n records count: ${tableData.length.toLocaleString()}`);
556+
break;
553557
}
554558
return tableData;
555559
} // end of getData()

0 commit comments

Comments
 (0)