What you're looking for is bracketed notation with a string:
brands[x]["keyword"]
In JavaScript, you can access object properties (which is what these are) in two ways:
Using dot notation and a literal property name, e.g.
foo.property
.Using bracketed notation and a string property name, e.g.
foo["property"]
.In this second case, the string doesn't have to be a literal string, it can be the result of any expression — including a variable reference. So:
var k = "keyword"; var value = brands[x][k];