{"id":642,"date":"2010-07-03T01:48:24","date_gmt":"2010-07-03T01:48:24","guid":{"rendered":"http:\/\/www.phpmind.com\/blog\/?p=642"},"modified":"2010-07-17T01:35:43","modified_gmt":"2010-07-17T01:35:43","slug":"json-the-5-minute-lesson","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2010\/07\/json-the-5-minute-lesson\/","title":{"rendered":"JSON: The 5 minute lesson"},"content":{"rendered":"<p><strong>What is Json ?<\/strong><\/p>\n<p>JSON stand for\u00a0 JavaScript Object Notation.<br \/>\nIt is a lightweight text-based open standard designed for human-readable data interchange.<br \/>\nIt is derived from the JavaScript\u00a0 programming language for representing simple data structures and associative arrays, called objects.<br \/>\nDespite its relationship to JavaScript, it is language-independent, with parsers available for virtually every programming language. The JSON filename extension is .json.<\/p>\n<p>It is easy for humans to read and write. It is easy for machines to parse and generate.<\/p>\n<p><strong>Exmaple:<\/strong><\/p>\n<pre lang=\"json\">{\"skillz\": {\r\n\"web\":[\r\n{\"name\": \"html\",\r\n\"years\": \"5\"\r\n},\r\n{\"name\": \"css\",\r\n\"years\": \"3\"\r\n}],\r\n\"database\":[\r\n{\"name\": \"sql\",\r\n\"years\": \"7\"\r\n}]\r\n}}\r\n<\/pre>\n<p><a href=\"http:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2010\/07\/json_phpmind.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-645\" title=\"json_phpmind\" src=\"http:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2010\/07\/json_phpmind.gif\" alt=\"\" width=\"540\" height=\"382\" srcset=\"https:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2010\/07\/json_phpmind.gif 600w, https:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2010\/07\/json_phpmind-300x212.gif 300w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p><strong>Squiggles, Squares, Colons and Commas<\/strong><\/p>\n<p>1. Squiggly brackets act as &#8216;containers&#8217; { }<br \/>\n2. Square brackets holds arrays [ ]<br \/>\n3. Names and values are separated by a colon. :<br \/>\n4. Array elements are separated by commas. ,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Json ? JSON stand for\u00a0 JavaScript Object Notation. It is a lightweight text-based open standard designed for human-readable data interchange. It is derived from the JavaScript\u00a0 programming language for representing simple data structures and associative arrays, called objects. Despite its relationship to JavaScript, it is language-independent, with parsers available for virtually every programming [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[26],"tags":[],"class_list":["post-642","post","type-post","status-publish","format-standard","hentry","category-json"],"_links":{"self":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/comments?post=642"}],"version-history":[{"count":8,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/642\/revisions"}],"predecessor-version":[{"id":834,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/642\/revisions\/834"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}