0
console.log(a) ; // console window result= 1
console.log(b);// console window result= 2
var c = {a : b};// any recommendations here?
var d = JSON.stringify(c);
d = encodeURIComponent(d);
最終結果はd = {1:2}です。JSONで2つのオブジェクトキーを連結