code: function parseParamString(paramString) {
      var obj = {};
  
      if ( typeof paramString !== "undefined" ){
          paramString
              .substring(1, paramString.length - 1) //strip off { and }
              .replace(/([a-zA-z-]+)=(.*?)(, |$)/g, function(_, header, val) {
                //Force "true" and "false" into Boolean
                if (val === "true") val = true;
                if (val === "false") val = false;
  
                obj[header.toLowerCase()] = val;
              });
      }
  
      return obj;
  }
docs: /*
  Split one of API Gateway's param strings into a real javascript object
  @param {string} paramString Looks like {key1=val1, key2=val2}