If fileCommandJson receives something like this in stdout:
{
"activationType" : "timeout",
"activationAt" : "2025-06-27 09:57:55 +0100",
"deliveredAt" : "2025-06-27 09:57:45 +0100"
}{
"activationType" : "timeout",
"activationAt" : "2025-06-27 09:57:55 +0100",
"deliveredAt" : "2025-06-27 09:57:45 +0100"
}
It will throw an error trying to parse it:
Uncaught SyntaxError: Unexpected non-whitespace character after JSON at position 129 (line 5 column 2)
at JSON.parse (<anonymous>)
at <anonymous>:1:6