kfc print event in json

This commit is contained in:
MeexReay 2025-03-21 18:32:33 +03:00
parent 5d29953930
commit fe03d8ab53

View File

@ -22,9 +22,9 @@ async function main(args) {
break break
} }
writeStdout(event + "\n") writeStdout(JSON.stringify(event) + "\n")
} else if (event.type == "char") { } else if (event.type == "char") {
writeStdout(event + "\n") writeStdout(JSON.stringify(event) + "\n")
} }
} }