code: function jsonTransform(options) {
    return function(key, value) {
      var ret = value;
      if (options.stripNulls && (value === null || value === undefined)) {
        // prune nulls
        ret = undefined;
      } else if (options.stripSerializerType && key === 'serializerType') {
        // prune serializerType
        ret = undefined;
      }
      return ret;
    };
  }
docs: transforms object prior to being fed through JSON.parse()