I’m sure this is a dumb question…
Does the Export create a JSON object (DBjson)? If so, why does this JSON object need to be stringifyed to see it…
DB=SqlOpenDatabase("Northwind.db");
DBjson=SQLExport(DB, "Northwind.db", exportComplete);
function exportComplete(){
alert (JSON.stringify(DBjson));
}
ghenne
January 28, 2021, 3:07pm
2
Tip : If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly.
ghenne
January 28, 2021, 3:09pm
3
Yes, SQLExport creates a JSON object. It’s a JavaScript Object, which the alert() function cannot convert into a string automatically.
JSON.stringify(DBjson)
does the string conversion.