Having this kind of structure in an array of objects how do i access the underlined data?
Asked
Active
Viewed 27 times
0

Willy Wunka
- 17
- 6
-
Show your effort please? – user202729 Jan 21 '18 at 13:58
-
Here's the answer anyway `obj["Gokul"]["comments"][0]["A"]`, assuming `obj` refers to the root of the tree. – 6infinity8 Jan 21 '18 at 14:01
-
thank youu. what if i want to print the A itself ? – Willy Wunka Jan 21 '18 at 15:16