﻿{"id":101,"date":"2009-07-12T22:01:19","date_gmt":"2009-07-12T20:01:19","guid":{"rendered":"http:\/\/www.idwaikat.me\/?p=101"},"modified":"2009-08-15T20:54:42","modified_gmt":"2009-08-15T18:54:42","slug":"json-basic-intro","status":"publish","type":"post","link":"http:\/\/www.idwaikat.me\/?p=101","title":{"rendered":"JSON &#8211; Basic Intro"},"content":{"rendered":"<p>JSON (pronounced like &#8220;<em>Jason<\/em>&#8220;): short for <strong>J<\/strong>ava<strong>S<\/strong>cript <strong>O<\/strong>bject <strong>N<\/strong>otation, is a lightweight computer data interchange format. It is a text-based, human-readable format for representing simple data structures and associative arrays. The official Internet media type for JSON is &#8220;<em>application\/json<\/em>&#8220;. The JSON file extension is <em>.json<\/em>.<\/p>\n<p>The JSON format is often used for serialization, transmitting structured data over a network connection. Its main application is in Ajax web application programming, where it serves as an alternative to the use of the XML format. JSON is supported by MSIE 5.5+, Mozilla\/4.0 and most of other browsers.<\/p>\n<p>Now let&#8217;s do some examples.<\/p>\n<p>In Javascript we know how to declare and initiate an object:<!--more--><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;; color: blue;\">var<\/span><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\"> myObject = <span style=\"color: blue;\">new<\/span> Object();<\/span><\/p>\n<p>it&#8217;s simple&#8230;now we will declare JSON:<\/p>\n<p><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;; color: blue;\">var<\/span><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\"> myJSON = { } ;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\">yes, it&#8217;s braces (curly brackets) not parentheses&#8230; thats how to declare it.. we don&#8217;t need any external javascript files.<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\">Now we will use it as data object, we will store some data about person:<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">var<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> personJSON = { <span style=\"color: #a31515;\">&#8220;firstName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Ibraihm&#8221;<\/span>,<br \/>\n<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;lastName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Dwaikat&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;address&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Palestine&#8221;<\/span>};<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\">We stored it, now we will use it, there are two ways to access the data:<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>1- Using Dot Notation:<\/strong><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(personJSON.firstName); <span style=\"color: green;\">\/\/ prints the first name:Ibrhahim<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\">document.write(personJSON.lastName); <span style=\"color: green;\">\/\/ prints the last name:Dwaikat<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\"><span style=\"color: green;\"><br \/>\n<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\">\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\"><span style=\"color: #ff0000;\"><strong>2- Like <a title=\"Associative Array\" href=\"http:\/\/en.wikipedia.org\/wiki\/Associative_array\" target=\"_blank\">Associative Array<\/a>:<br \/>\n<\/strong><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(personJSON[<span style=\"color: #a31515;\">&#8220;firstName&#8221;<\/span>]); <span style=\"color: green;\">\/\/ prints the first name:Ibrhahim<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\">document.write(personJSON[<span style=\"color: #a31515;\">&#8220;lastName&#8221;<\/span>]); <span style=\"color: green;\">\/\/ prints the last name:Dwaikat<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\"><span style=\"text-decoration: underline;\"><strong>NOTE<\/strong><\/span> that this is <span style=\"color: #ff0000;\"><strong>NOT <\/strong><\/span>Associative Array, it <span style=\"color: #0000ff;\">appears like<\/span> associative array<\/span><\/p>\n<p>Let&#8217;s do another example, more complex, let&#8217;s make a category of websites: Arabic websites and English websites, each website contains data about website name, URL and website type, this can be coded in JSON as follows:<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">var<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> websites = { <span style=\"color: #a31515;\">&#8220;arabicWebsites&#8221;<\/span> : [ <span style=\"color: green;\">\/\/this category is an array of arabic websites<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<span style=\"color: #a31515;\">&#8220;websiteName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Balata-Albalad&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteURL&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;http:\/\/www.balata-albalad.org&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteType&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Information website&#8221;<\/span>} ,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<span style=\"color: #a31515;\">&#8220;websiteName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Google Jordan&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteURL&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;http:\/\/www.google.jo&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteType&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Search Engine&#8221;<\/span> }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">], <span style=\"color: green;\">\/\/end of arabicWebsites<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: green;\"><br \/>\n<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;englishWebsites&#8221;<\/span> : [ <span style=\"color: green;\">\/\/this category is an array of english websites<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<span style=\"color: #a31515;\">&#8220;websiteName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Ibrahim Dwaikat&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteURL&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;http:\/\/www.idwaikat.me&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteType&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Personal website&#8221;<\/span>} ,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<span style=\"color: #a31515;\">&#8220;websiteName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Facebook&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteURL&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;http:\/\/www.facebook.com&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteType&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Social network service&#8221;<\/span> },<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<span style=\"color: #a31515;\">&#8220;websiteName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Wolfram Alpha&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteURL&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;http:\/\/www.wolframalpha.com&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteType&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Answer Engine&#8221;<\/span>} <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">] <span style=\"color: green;\">\/\/end of englishWebsites<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">} <span style=\"color: green;\">\/\/ end of websites<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\">\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\">\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\">now we will access the websites and write it on the screen as hyperlinks (&lt;a href=&#8217;http&#8230;.&#8217;&gt;site&lt;\/a&gt;) then writing &lt;br\/&gt; to write the next one on new line, we will do it using two for loops, one for ArabicWebistes and one for EnglishWebsite, it may be done like this:<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(<span style=\"color: #a31515;\">&#8220;&lt;hr \/&gt;ARABIC WEBSITES: &lt;br \/&gt;&lt;br \/&gt;&#8221;<\/span>);<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">for<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">(<span style=\"color: blue;\">var<\/span> i=0; i&lt;websites.arabicWebsites.length; i++)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(<span style=\"color: #a31515;\">&#8220;&lt;a href='&#8221;<\/span> + websites.arabicWebsites.websiteURL + <span style=\"color: #a31515;\">&#8220;&#8216;&gt;&#8221;<\/span> + websites.arabicWebsites.websiteName + <span style=\"color: #a31515;\">&#8221; (&#8220;<\/span> + websites.arabicWebsites.websiteType +<span style=\"color: #a31515;\">&#8220;) &#8220;<\/span> + <span style=\"color: #a31515;\">&#8220;&lt;\/a&gt;&lt;br \/&gt;&#8221;<\/span>);<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(<span style=\"color: #a31515;\">&#8220;&lt;hr \/&gt;ENGLISH WEBSITES: &lt;br \/&gt;&lt;br \/&gt;&#8221;<\/span>);<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">for<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">(<span style=\"color: blue;\">var<\/span> i=0; i&lt;websites.englishWebsites.length; i++)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(<span style=\"color: #a31515;\">&#8220;&lt;a href='&#8221;<\/span> + websites.englishWebsites.websiteURL + <span style=\"color: #a31515;\">&#8220;&#8216;&gt;&#8221;<\/span> + websites.englishWebsites.websiteName + <span style=\"color: #a31515;\">&#8221; (&#8220;<\/span> + websites.englishWebsites.websiteType +<span style=\"color: #a31515;\">&#8220;) &#8220;<\/span> + <span style=\"color: #a31515;\">&#8220;&lt;\/a&gt;&lt;br \/&gt;&#8221;<\/span>);<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\">the output is something like this:<\/span><\/p>\n<p>ARABIC WEBSITES:<\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><a href=\"http:\/\/www.balata-albalad.org\/\">Balata-Albalad (Information website) <\/a><br \/>\n<a href=\"http:\/\/www.google.jo\/\">Google Jordan (Search Engine) <\/a><\/p>\n<hr \/>\n<p>ENGLISH WEBSITES:<\/p>\n<p><a href=\"..\/?phpMyAdmin=c1cdea57f83680f9741c0b3f748737d7\">Ibrahim Dwaikat (Personal website) <\/a><br \/>\n<a href=\"http:\/\/www.facebook.com\/\">Facebook (Social network service) <\/a><br \/>\n<a href=\"http:\/\/www.wolframalpha.com\/\">Wolfram Alpha (Answer Engine) <\/a><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\">\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\">\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\">\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\">That&#8217;s all about how to basically use JSON, the next lesson will be: <span style=\"color: #0000ff;\">How to send JSON data to ASP.NET server<\/span>.. see you soon, thanks for reading.<\/span><\/p>\n<p>PS: The following is the full code used in this lesson<\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\">\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">&lt;<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: #a31515;\">html<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">&gt;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">&lt;<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: #a31515;\">head<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">&gt;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">&lt;\/<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: #a31515;\">head<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">&gt;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">&lt;<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: #a31515;\">body<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">&gt;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: blue;\">&lt;<\/span><span style=\"color: #a31515;\">script<\/span> <span style=\"color: red;\">language<\/span><span style=\"color: blue;\">=&#8221;javascript&#8221;<\/span> <span style=\"color: red;\">type<\/span><span style=\"color: blue;\">=&#8221;text\/javascript&#8221;&gt;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: green;\">\/\/object<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: blue;\">var<\/span> myObject = <span style=\"color: blue;\">new<\/span> Object();<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: green;\">\/\/JSON<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: blue;\">var<\/span> myJSON = { } ;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">var<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> personJSON = { <span style=\"color: #a31515;\">&#8220;firstName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Ibraihm&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;lastName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Dwaikat&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;address&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Palestine&#8221;<\/span>};<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;\">\/\/Accessing data using dot notation<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(personJSON.firstName); <span style=\"color: green;\">\/\/ prints the first name:Ibrhahim<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(personJSON.lastName); <span style=\"color: green;\">\/\/ prints the last name:Dwaikat<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(<span style=\"color: #a31515;\">&#8220;&lt;br \/&gt;&#8221;<\/span>); <span style=\"color: green;\">\/\/new line, just for formatting purposes<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;\">\/\/Accessing data like Associative Array<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(personJSON[<span style=\"color: #a31515;\">&#8220;firstName&#8221;<\/span>]); <span style=\"color: green;\">\/\/ prints the first name:Ibrhahim<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(personJSON[<span style=\"color: #a31515;\">&#8220;lastName&#8221;<\/span>]); <span style=\"color: green;\">\/\/ prints the last name:Dwaikat<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(<span style=\"color: #a31515;\">&#8220;&lt;br \/&gt;&#8221;<\/span>); <span style=\"color: green;\">\/\/new line, just for formatting purposes<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">var<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> websites = { <span style=\"color: #a31515;\">&#8220;arabicWebsites&#8221;<\/span> : [ <span style=\"color: green;\">\/\/this category is an array of arabic websites<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<span style=\"color: #a31515;\">&#8220;websiteName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Balata-Albalad&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteURL&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;http:\/\/www.balata-albalad.org&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteType&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Information website&#8221;<\/span>} ,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<span style=\"color: #a31515;\">&#8220;websiteName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Google Jordan&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteURL&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;http:\/\/www.google.jo&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteType&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Search Engine&#8221;<\/span> }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">], <span style=\"color: green;\">\/\/end of arabicWebsites<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;englishWebsites&#8221;<\/span> : [ <span style=\"color: green;\">\/\/this category is an array of english websites<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<span style=\"color: #a31515;\">&#8220;websiteName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Ibrahim Dwaikat&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteURL&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;http:\/\/www.idwaikat.me&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteType&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Personal website&#8221;<\/span>} ,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<span style=\"color: #a31515;\">&#8220;websiteName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Facebook&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteURL&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;http:\/\/www.facebook.com&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteType&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Social network service&#8221;<\/span> },<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<span style=\"color: #a31515;\">&#8220;websiteName&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Wolfram Alpha&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteURL&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;http:\/\/www.wolframalpha.com&#8221;<\/span>,<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: #a31515;\">&#8220;websiteType&#8221;<\/span> : <span style=\"color: #a31515;\">&#8220;Answer Engine&#8221;<\/span>} <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">] <span style=\"color: green;\">\/\/end of englishWebsites<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">} <span style=\"color: green;\">\/\/ end of websites<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(<span style=\"color: #a31515;\">&#8220;&lt;hr \/&gt;ARABIC WEBSITES: &lt;br \/&gt;&lt;br \/&gt;&#8221;<\/span>);<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">for<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">(<span style=\"color: blue;\">var<\/span> i=0; i&lt;websites.arabicWebsites.length; i++)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(<span style=\"color: #a31515;\">&#8220;&lt;a href='&#8221;<\/span> + websites.arabicWebsites.websiteURL + <span style=\"color: #a31515;\">&#8220;&#8216;&gt;&#8221;<\/span> + websites.arabicWebsites.websiteName + <span style=\"color: #a31515;\">&#8221; (&#8220;<\/span> + websites.arabicWebsites.websiteType +<span style=\"color: #a31515;\">&#8220;) &#8220;<\/span> + <span style=\"color: #a31515;\">&#8220;&lt;\/a&gt;&lt;br \/&gt;&#8221;<\/span>);<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(<span style=\"color: #a31515;\">&#8220;&lt;hr \/&gt;ENGLISH WEBSITES: &lt;br \/&gt;&lt;br \/&gt;&#8221;<\/span>);<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">for<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">(<span style=\"color: blue;\">var<\/span> i=0; i&lt;websites.englishWebsites.length; i++)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">document.write(<span style=\"color: #a31515;\">&#8220;&lt;a href='&#8221;<\/span> + websites.englishWebsites.websiteURL + <span style=\"color: #a31515;\">&#8220;&#8216;&gt;&#8221;<\/span> + websites.englishWebsites.websiteName + <span style=\"color: #a31515;\">&#8221; (&#8220;<\/span> + websites.englishWebsites.websiteType +<span style=\"color: #a31515;\">&#8220;) &#8220;<\/span> + <span style=\"color: #a31515;\">&#8220;&lt;\/a&gt;&lt;br \/&gt;&#8221;<\/span>);<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"color: blue;\">&lt;\/<\/span><span style=\"color: #a31515;\">script<\/span><span style=\"color: blue;\">&gt;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\">\u00a0<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">&lt;\/<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: #a31515;\">body<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">&gt;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">&lt;\/<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: #a31515;\">html<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">&gt;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\">\n<p class=\"MsoNormal\" style=\"text-align: left; direction: ltr; unicode-bidi: embed;\" dir=\"ltr\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\"><br \/>\n<\/span><\/p>\n<p>References:<br \/>\n<a href=\"http:\/\/json.org\" target=\"_blank\">json.org<\/a><br \/>\n<a href=\"http:\/\/en.wikipedia.org\/wiki\/JSON\">wikipedia.org<\/a><br \/>\n<a href=\"http:\/\/oss.metaparadigm.com\/jsonrpc-1.0\/browser.jsp\">metaparadigm.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>JSON (pronounced like &#8220;Jason&#8220;): short for JavaScript Object Notation, is a lightweight computer data interchange format. It is a text-based, human-readable format for representing simple data structures and associative arrays. The official Internet media type for JSON is &#8220;application\/json&#8220;. The JSON file extension is .json. The JSON format is often used for serialization, transmitting structured<\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"http:\/\/www.idwaikat.me\/?p=101\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_expiration-date-status":"","_expiration-date":0,"_expiration-date-type":"","_expiration-date-categories":[],"_expiration-date-options":[]},"categories":[9],"tags":[23,24,21,22],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>JSON - Basic Intro - Eng. Ibrahim Dwaikat<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"http:\/\/www.idwaikat.me\/?p=101\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"JSON - Basic Intro - Eng. Ibrahim Dwaikat\" \/>\r\n<meta property=\"og:description\" content=\"JSON (pronounced like &#8220;Jason&#8220;): short for JavaScript Object Notation, is a lightweight computer data interchange format. It is a text-based, human-readable format for representing simple data structures and associative arrays. The official Internet media type for JSON is &#8220;application\/json&#8220;. The JSON file extension is .json. The JSON format is often used for serialization, transmitting structured    Read More\" \/>\r\n<meta property=\"og:url\" content=\"http:\/\/www.idwaikat.me\/?p=101\" \/>\r\n<meta property=\"og:site_name\" content=\"Eng. Ibrahim Dwaikat\" \/>\r\n<meta property=\"article:published_time\" content=\"2009-07-12T20:01:19+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2009-08-15T18:54:42+00:00\" \/>\r\n<meta name=\"author\" content=\"admin\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.idwaikat.me\/?p=101\",\"url\":\"http:\/\/www.idwaikat.me\/?p=101\",\"name\":\"JSON - Basic Intro - Eng. Ibrahim Dwaikat\",\"isPartOf\":{\"@id\":\"http:\/\/www.idwaikat.me\/#website\"},\"datePublished\":\"2009-07-12T20:01:19+00:00\",\"dateModified\":\"2009-08-15T18:54:42+00:00\",\"author\":{\"@id\":\"http:\/\/www.idwaikat.me\/#\/schema\/person\/7738daf850bf9025cb97d4e728b96e05\"},\"breadcrumb\":{\"@id\":\"http:\/\/www.idwaikat.me\/?p=101#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.idwaikat.me\/?p=101\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.idwaikat.me\/?p=101#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.idwaikat.me\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JSON &#8211; Basic Intro\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.idwaikat.me\/#website\",\"url\":\"http:\/\/www.idwaikat.me\/\",\"name\":\"Eng. Ibrahim Dwaikat\",\"description\":\"Be better than expected\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.idwaikat.me\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.idwaikat.me\/#\/schema\/person\/7738daf850bf9025cb97d4e728b96e05\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.idwaikat.me\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/2.gravatar.com\/avatar\/8647144a952284a7cf0336a3632931a4?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/2.gravatar.com\/avatar\/8647144a952284a7cf0336a3632931a4?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/www.idwaikat.me\"],\"url\":\"http:\/\/www.idwaikat.me\/?author=1\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JSON - Basic Intro - Eng. Ibrahim Dwaikat","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.idwaikat.me\/?p=101","og_locale":"en_US","og_type":"article","og_title":"JSON - Basic Intro - Eng. Ibrahim Dwaikat","og_description":"JSON (pronounced like &#8220;Jason&#8220;): short for JavaScript Object Notation, is a lightweight computer data interchange format. It is a text-based, human-readable format for representing simple data structures and associative arrays. The official Internet media type for JSON is &#8220;application\/json&#8220;. The JSON file extension is .json. The JSON format is often used for serialization, transmitting structured    Read More","og_url":"http:\/\/www.idwaikat.me\/?p=101","og_site_name":"Eng. Ibrahim Dwaikat","article_published_time":"2009-07-12T20:01:19+00:00","article_modified_time":"2009-08-15T18:54:42+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.idwaikat.me\/?p=101","url":"http:\/\/www.idwaikat.me\/?p=101","name":"JSON - Basic Intro - Eng. Ibrahim Dwaikat","isPartOf":{"@id":"http:\/\/www.idwaikat.me\/#website"},"datePublished":"2009-07-12T20:01:19+00:00","dateModified":"2009-08-15T18:54:42+00:00","author":{"@id":"http:\/\/www.idwaikat.me\/#\/schema\/person\/7738daf850bf9025cb97d4e728b96e05"},"breadcrumb":{"@id":"http:\/\/www.idwaikat.me\/?p=101#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.idwaikat.me\/?p=101"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.idwaikat.me\/?p=101#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.idwaikat.me\/"},{"@type":"ListItem","position":2,"name":"JSON &#8211; Basic Intro"}]},{"@type":"WebSite","@id":"http:\/\/www.idwaikat.me\/#website","url":"http:\/\/www.idwaikat.me\/","name":"Eng. Ibrahim Dwaikat","description":"Be better than expected","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.idwaikat.me\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.idwaikat.me\/#\/schema\/person\/7738daf850bf9025cb97d4e728b96e05","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.idwaikat.me\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/8647144a952284a7cf0336a3632931a4?s=96&d=mm&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/8647144a952284a7cf0336a3632931a4?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.idwaikat.me"],"url":"http:\/\/www.idwaikat.me\/?author=1"}]}},"_links":{"self":[{"href":"http:\/\/www.idwaikat.me\/index.php?rest_route=\/wp\/v2\/posts\/101"}],"collection":[{"href":"http:\/\/www.idwaikat.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.idwaikat.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.idwaikat.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.idwaikat.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=101"}],"version-history":[{"count":10,"href":"http:\/\/www.idwaikat.me\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":108,"href":"http:\/\/www.idwaikat.me\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions\/108"}],"wp:attachment":[{"href":"http:\/\/www.idwaikat.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.idwaikat.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.idwaikat.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}