Skip to content

fileCommandJson sometimes receives JSON lines that it can't parse. #455

@strongpauly

Description

@strongpauly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions