code: function (str, parserOptions) {
    parserOptions = parserOptions || {};
    // Do a naive test whether this is a string or an object
    var mapFn = parserOptions.map ? str.trim().charAt(0) === '[' ? underscore.map : underscore.mapObject : identity;
    var jsonParser = JSON.parse;
    return mapFn(jsonParser(str, parserOptions.reviver, parserOptions.filename), parserOptions.map);
  }
docs: /* istanbul ignore next