I\'m fairly new to JavaScript and am not sure this is possible to do but basically I would like to take an object and convert it into an array of strings in the format;
var object = { private_key: "private-key", public_key: "public-key" }; var array = []; for (var prop in object) array.push(prop + "=" + object[prop]); return array.join(','); // "private_key=private-key,public_key=public-key"
Notice the order is not guaranteed.