7:18 am - Monday September 24, 2018

JSON Array With JavaScript

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

Project Structure:

 

 

 

 

 

 

JsonArrayJs.html:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<h1>This is JSON Example</h1>
<script type="text/javascript">
	var JSONObject = {
		"Student_Details" : [ {
			"Name" : "Mathan",
			"Course" : "JAVA",
			"Mark" : "100"
		}, {
			"Name" : "Deepa",
			"Course" : "J2EE",
			"Mark" : "100"
		}, {
			"Name" : "Kalai",
			"Course" : "Spring",
			"Mark" : "100"
		} ]
	};
	document.write("Name: " + JSONObject.Student_Details[0].Name);
</script>
</head>
<body bgcolor="pink">

</body>
</html>

OUTPUT:

DOWNLOAD+SOURCECODE

Filed in: Z-A JSON codes

Comments are closed.