I want to print a key: value pair from javascript object. I can have different keys in my array so cannot hardcode it to object[0].key1
var filters = [{\"user\"
This is looking for a term property on filters[0]:
term
filters[0]
console.log(filters[0].term);
What you actually want to do is use the value of term (in your example that will be "user") as the property identifier:
"user"
console.log(filters[0][term]);