sample-proxies/outbound-oauth/apiproxy/resources/jsc/translate-query.js
/**
 * Serialize an object to a query parameter string
 * e.g. { a: 'b', c: 'd' } --> 'a=b&c=d'
 */
Serialize an object to a query parameter string
e.g.
Serialize an object to a query parameter string e . g .
function serializeQuery(obj) {
  var str = [];
  for (var p in obj) {
    str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
  }
  return str.join("&");
}
function serializeQuery ( obj ) { var str = [ ] ; for ( var p in obj ) { str . push ( encodeURIComponent ( p ) + "=" + encodeURIComponent ( obj [ p ] ) ) ; } return str . join ( "&" ) ; }
Serialize an object to a query parameter string
 e.g.
Serialize an object to a query parameter string e . g .