Consider the following
var a = {foo: \"bar\"};
Equivalent to
var a = {}; a.foo = \"bar\";
Equivalent to>
JSON parse allows you to convert a JSON string into an object:
JSON.parse('{"'+dynamicProperty+'":"bar"}');
This is not exactly an object litteral, but if your objective is to enter your property name as a variable it works.