Created
August 31, 2014 18:37
-
-
Save n9ti/de24433a3674d9fc7c90 to your computer and use it in GitHub Desktop.
JSON Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myJSON = { | |
firstName: 'Nati', | |
lastName: 'Namvong', | |
stdCode: '4466260181', | |
enroll: [{ | |
subjectName: 'Mobile', | |
subjectId: '665313', | |
creadit: 3 | |
}, { | |
subjectName: 'C++', | |
subjectId: '665311', | |
creadit: 3 | |
} | |
] | |
}; | |
for (var i = 0; i < myJSON.enroll.length; i++) { | |
console.log(myJSON.enroll[i].subjectId); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment