Hi!
The current implementation doesn’t use regexp to search for JSON in the output. The code checks for the ‘{‘ ‘}’ characters at the start and at the end of the line. So if the line matches then the contents will be parsed for the data.
If there’s a print statement in your test without “\n” then we wouldn’t be able to locate a valid json. Golang devs recommend using t.Log / t. Error instead of print calls for logging the output in the tests. https://github.com/golang/go/issues/23036#issuecomment-355669573