I have code like this.
var key = \"anything\"; var object = { key: \"key attribute\" };
I want to know if there is a way to rep
This should do the trick:
var key = "anything"; var json = {}; json[key] = "key attribute";