Open theBowja opened 8 months ago
fix for newline and undefined: https://gist.github.com/theBowja/5d8f0fc80da350945a4703527745dcf8/revisions
also need to take into account Date and BigInt
if (item instanceof Date) {
return JSON.stringify(item);
}
if (typeof item === 'bigint') {
return JSON.stringify(item);
}
undefined
values should be removed from the output.\n
newline characters aren't handled properly.Actual (improper json):
Expected: