How can I get value of "ddd" using jquery? Here is my JSON:
{
"aaa": "aaa",
"bbb": {
"ccc": {
"ddd": "HERE IS THE DATA"
}
}
}
I'm quite new to JS, so pardon me for silly question.
How can I get value of "ddd" using jquery? Here is my JSON:
{
"aaa": "aaa",
"bbb": {
"ccc": {
"ddd": "HERE IS THE DATA"
}
}
}
I'm quite new to JS, so pardon me for silly question.
Assuming your object is named obj
, you can access the value with :
obj.bbb.ccc.ddd
But this has nothing to do with jQuery. This is pure javascript.
See fiddle.