fix: do not skip undefined values

This commit is contained in:
Ruben Fiszel
2022-08-05 19:53:28 +02:00
parent e76a9816ee
commit 8b68a87c52
+1 -1
View File
@@ -738,7 +738,7 @@ const args = await Deno.readTextFile("args.json")
async function run() {{
let res: any = await main(...args);
const res_json = JSON.stringify(res ?? null);
const res_json = JSON.stringify(res ?? null, (key, value) => typeof value === 'undefined' ? null : value);
console.log();
console.log("result:");
console.log(res_json);