Add newlines to the JSON stream functions Upstream-commit: 01dc79b3ea0dcca26acb3c3d6b949084fabd9074 Component: engine