Skip to content

Commit

Permalink
#151 default to json in data.view getData() load if no matching file …
Browse files Browse the repository at this point in the history
…ext. found
  • Loading branch information
RandomFractals committed Sep 29, 2019
1 parent a93c694 commit 595d9f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/data.view.html
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@
case '.ini':
case '.yaml':
case '.yml':
case '.json':
case '.json5':
case '.hjson':
// pass through loaded data json
Expand All @@ -550,6 +549,11 @@
// TODO: add parquet data read
console.info('data.preview:\n\n Parquet data format support coming soon!');
break;
default: // json
// pass through loaded data json
tableData = data;
logMessage(`getData()\n\n records count: ${tableData.length.toLocaleString()}`);
break;
}
return tableData;
} // end of getData()
Expand Down

0 comments on commit 595d9f0

Please sign in to comment.