I have the variables which has values in as follows:
var Name = "ABC";
var address = "cde";
var id = 2;
I want to form the JSON string using above as
var jsonObj = {"Name":"cde","Address":"cde","id":2};
these variable are not static, but here I had shown just for the understanding. These variable gets assigned some values based on some logic , but end goal is to have the jsonObj value as
{"Name":"cde","Address":"cde","id":2}