I have two objects
var objA = {name:"company1", caption : "The caption..."};
I want to create the following object using objA
var company = {company1: "The caption..."};
Something like the following didn't work.
var company = {objA.name : objA.caption};