Accessing object in javascript issue [duplicate] - Essay Example

This is the result of my console.log(params):

We Will Write A Custom Essay Sample On
ANY TOPIC SPECIFICALLY
FOR YOU

For Only $13.90/page


order now

currency_id: false
customer_id: 127505
“payment[account_name]”: “”
“payment[iban]”: “”
“payment[method]”: “adyen_sepa”
store_id: “1”

I got this from ajax call and when I am doing this onSuccess :

console.log(params.customer_id); // I got the right value
console.log(params.payment[‘method’]) // I am getting undefined
var obj = “payment[‘method’]”;
console.log(params.obj) // still undefined

How can I get teh value from payment[method] ? Thnx