Way2tutorial Snippet Editor
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript Array Multidimensional</title> </head> <body> <script type="text/javascript"> // Press F12 - View result on Console Panel var JSONText = '{ "users" : [{"Name":"Opal Kole", "Address":"63 street Ct."}, {"Name":"Max Miller", "Address":"41 NEW ROAD."}, {"Name":"Beccaa Moss", "Address": "2500 green city."},{"Name":"Paul Singh", "Address": "1343 Prospect St"}]}'; var jsondecode = JSON.parse(JSONText); console.log(jsondecode["users"]); console.log(jsondecode["users"][0]); console.log(jsondecode["users"][0]["Name"]); </script> </body> </html>