Opt In (Do Not Edit Here)

Nov 1, 2016

Creating Simple JSON Object with JavaScript



<html>
<head>
<title>Creating Simple JSON Object with JavaScript</title>

<style>
body {padding:80px; text-align:center;}
</style>

<script language="javascript" >

 var JSONObj1 = { "movie":"Chennai Express", "year":2013 };

 var JSONObj2 = { "movie":"Singham Returns", "year":2014 };


  document.write("<h1>Simple JSON Object</h1>");

  document.write("<h3>-----Movies-----</h3>");

  document.write("Movie-1 : "+JSONObj1.movie);
  document.write("<br>Release Year: "+JSONObj1.year);
  document.write("<br>");

  document.write("<br>Movie-2 : "+JSONObj2.movie);
  document.write("<br>Release Year: "+JSONObj2.year);
  document.write("<br>");

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

simple json object in javascript

About The Author :

Freelancer and IT Engineer
Softwares Developed by Mayur Dighe ImmortalDotNet.WordPress.com

0 comments :

All Rights Reserved. 2014 Copyright SIMPLITONA

Powered By Blogger | Published By Gooyaabi Templates Designed By : BloggerMotion

Top