In our example file we have created an object "students" which contains two array objects "Maths" and "Science" containing name, marks and age of two students. Now we can access these objects value in the following way:
"students.Maths" for accessing Maths array and "students.Science" for accessing Science array object. Now to access first element of the Maths array we can write it as "students.Maths" and then we can access elements of this array as "students.Maths.Name" for name and "students.Maths.Marks" for marks of the first student in Maths and so on.
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial