Get values from object array with nested level - Javascript Array Operation

Javascript examples for Array Operation:Array Nest

Description

Get values from object array with nested level

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript">
    window.onload=function(){/*from   w w w  .ja  v  a2 s  .c om*/
var mylist = {"groupslist":{"groupname":["user1","user2","user3"],"groupname2":["user1","user2","user3"],"groupname3":["user1","user2","user3"]}};
console.log(mylist.groupslist.groupname2)
    }

      </script> 
   </head> 
   <body>  
   </body>
</html>

Related Tutorials