I have the following JSON output and I need to access the variable TN_TEXTO. How can I access it?
["data", [
["notification",
{
"TN_CODIGO": "3",
"TN_TP_CODIGO": "1",
"TN_TEXTO": "dddddddddddd",
"TN_DATA": "1325708743",
"TN_LINK": "",
"TN_READ": "0"
}]
]]
Thanks in advance!
Use
JSON.parseto convert a string to an object. Then you can use JavaScript syntax on it.Live example