I have a series of variables that I would like to pass into an object and I need the left side key to be pulled from a dynamic variable. How would I go about doing this?
Here's an example:
var characteristic = 'color';
var value = 'green';
// Desired JSON output
var object = {
color: 'green'
}