'use strict';

function process(fileContents, opts) {
  const reviver = opts && opts.reviver;
  return JSON.parse(fileContents, reviver);
}

const type = 'file';
const name = 'json';
const extensions = ['.json'];
function registration(register) {
  register(type, name, extensions, process);
}

module.exports = registration;

'use strict';

function process(fileContents) {
  return JSON.parse(fileContents);
}

const type = 'file';
const name = 'json';
const extensions = ['.json'];
function registration(register) {
  register(type, name, extensions, process);
}

module.exports = registration;

remove the reviver from the json file processor