static/js/services/scribeAPI.js
function (data) {

                        var lines = data.match(/[^\r\n]+/g); //cut lines

                        return lines.map(function (line) {
                            try {
                                return JSON.parse(line);
                            } catch (e) {
                                return line;
                            }
                        });
                    }
function (data) {

                        var lines = data.match(/[^\r\n]+/g); //cut lines

                        return lines.map(function (line) {
                            try {
                                return JSON.parse(line);
                            } catch (e) {
                                return line;
                            }
                        });
                    }
function ( data ) { var lines = data . match ( / [^\r\n]+ / g ) ; //cut lines return lines . map ( function ( line ) { try { return JSON . parse ( line ) ; } catch ( e ) { return line ; } } ) ; }
As logs are lines of JSON, we want to parse each lines one by one
As logs are lines of JSON we want to parse each lines one by one