var EOL = '\n';
var compile = require('./utils/json/compiler');

module.exports = function(serializers) {
  var f = compile(serializers || {});
  return function(record) {
    return f(record) + EOL;
  };
};

var EOL = '\n';
var f = require('./utils/json/index');

module.exports = function createJsonFormat(serializers) {
  var s = serializers || {};
  return function jsonFormat(record) {
    return f(record, s) + EOL;
  };
};

Use new json format function
Use new json format function
