I am dealing with a JSON array that includes a square bracket in the key, like this:
{
"msg":"OK",
"data":[
{
"nls!type":"NCR",
"current":"Assign",
"physicalid":"0FFE0001000009FC5BD6805C00001352",
"attribute[custTitle]":"Title",
"name":"181002",
"description":""
}
]
}
My question is, how can I access the value of "attribute[custTitle]" in JavaScript?
When attempting to retrieve arrData[i].attribute[custTitle], I am encountering an error stating that custTitle is not defined. However, I am able to access the other values in a similar manner without any issues.