code: function jsonToQueryString(json) {
      return '?' +
          Object
          .keys(json)
          .map(function (key) {
              if (json[key] !== null) {
                  return encodeURIComponent(key) + '=' +
                      encodeURIComponent(json[key]);
              }
          })
          .join('&');
  }
docs: /*
  Function to turn JSON object to URL params