Reformat expected streaming output as JSON and parse for tests.