Skip to content

How to load data from multiple JSON files

Mathias Rangel Wulff edited this page Mar 14, 2017 · 2 revisions

How to load data from multiple JSON files?

You can load data from multiple table in async mode with AlaSQL like below:

    alasql(['SELECT * FROM JSON("a.json")',
            'SELECT * FROM JSON("b.json")',
            'SELECT * FROM JSON("c.json")'].then(function(res) {
             var a = res[0], b = res[1], b = res[2];
    });
Clone this wiki locally