{"id":417,"date":"2017-08-23T13:08:46","date_gmt":"2017-08-23T13:08:46","guid":{"rendered":"http:\/\/mansainfotech.com\/blog\/?p=417"},"modified":"2017-08-23T13:08:46","modified_gmt":"2017-08-23T13:08:46","slug":"json-what-how-why","status":"publish","type":"post","link":"https:\/\/mansainfotech.com\/blog\/json-what-how-why\/","title":{"rendered":"JSON \u2013 What, How &#038; Why?"},"content":{"rendered":"<p class=\"western\" align=\"justify\"><i>Denoting, JavaScript Object Notation<\/i> is a lightweight data interchange format. It is easy to read and write by humans, easy to parse and generate by machines.<\/p>\n<p class=\"western\" align=\"justify\">JSON format was first specified by Douglas Crockford around 2000. The internet media type for Json is application\/json with its extension as .json.<\/p>\n<p class=\"western\" style=\"text-align: center;\" align=\"center\"><b>What is JSON<\/b><\/p>\n<hr \/>\n<p class=\"western\" align=\"justify\">JSON is a way of storing information in an easy and organized way. It is language independent and lightweight.<\/p>\n<p class=\"western\" align=\"justify\">Let\u2019s enclose its quick facts and characterstics in points:It is<\/p>\n<p class=\"western\" align=\"justify\">\u261b It is minimal format for structuring data.<\/p>\n<p class=\"western\" align=\"justify\">\u261b It is currently supported by every major programming paradigm.<\/p>\n<p class=\"western\" align=\"justify\">\u261b It is very easy to read and write.It is based on<\/p>\n<p class=\"western\" align=\"justify\">\u261b It is based on subset of Javascript language.<\/p>\n<p class=\"western\" align=\"justify\">\u261b It is much much lightweight.<\/p>\n<p class=\"western\" style=\"text-align: center;\" align=\"center\"><b>How \u2013 To JSON<\/b><\/p>\n<hr \/>\n<p class=\"western\" align=\"justify\">Here, we\u2019ll have a quick look into the syntax of JSON, which is considered as subset of javascript syntax.<\/p>\n<p class=\"western\" align=\"justify\">The syntax includes:<\/p>\n<p class=\"western\" align=\"justify\">\u261b Representation of data in name\/value pairs<\/p>\n<p class=\"western\" align=\"justify\">\u261b Curly braces {} holding objectsE<\/p>\n<p class=\"western\" align=\"justify\">\u261b Each name followed by semicolon \u2018:\u2019<\/p>\n<p class=\"western\" align=\"justify\">\u261b Name\/Value pair are seperated by comma (,)<\/p>\n<p class=\"western\" align=\"justify\">JSON supports two set of data structures:<\/p>\n<p class=\"western\" align=\"justify\">\u261b Name and value pairs<\/p>\n<p class=\"western\" align=\"justify\">\u261b Ordered list of values<\/p>\n<p class=\"western\" align=\"justify\"><span style=\"text-decoration: underline;\">Various Data types supported by JSON: <\/span><\/p>\n<p class=\"western\" align=\"justify\">1. Strings<\/p>\n<p class=\"western\" align=\"justify\">2. Number<\/p>\n<p class=\"western\" align=\"justify\">3. Boolean<\/p>\n<p class=\"western\" align=\"justify\">4. Array<\/p>\n<p class=\"western\" align=\"justify\">5. Object<\/p>\n<p class=\"western\" align=\"justify\">6. Whitespace<\/p>\n<p class=\"western\" align=\"justify\">7. Null<\/p>\n<p class=\"western\" style=\"text-align: center;\" align=\"center\"><b>Why JSON<\/b><\/p>\n<hr \/>\n<p class=\"western\" align=\"justify\">Use JSON in following cases:<\/p>\n<p class=\"western\" align=\"justify\">\u261b For exchanging data<\/p>\n<p class=\"western\" align=\"justify\">\u261b Sending data<\/p>\n<p class=\"western\" align=\"justify\">\u261b Receiving data<\/p>\n<p class=\"western\" align=\"justify\">\u261b Storing data<\/p>\n<p class=\"western\" align=\"justify\">Other practical applications of JSON includes:<\/p>\n<p class=\"western\" align=\"justify\">\u261b Used while writing Javascript based applications<\/p>\n<p class=\"western\" align=\"justify\">\u261b Used to transmit data b\/w server and web application<\/p>\n<p class=\"western\" align=\"justify\">\u261b Used with modern programming languages<\/p>\n<p class=\"western\" style=\"text-align: center;\" align=\"center\"><b>Wrapping Up<\/b><\/p>\n<hr \/>\n<p class=\"western\" align=\"justify\">JSON is pretty great way for exchanging data \u2013 simple, easy and ready to use. You can think of it, as, adding an additional file to your JS program. You can learn more on it at <span style=\"color: #000080;\"><span lang=\"zxx\"><span style=\"text-decoration: underline;\"><a href=\"http:\/\/json.org\/\">json.org<\/a><\/span><\/span><\/span>.<\/p>\n<p class=\"western\" align=\"justify\">That\u2019s it for now! See you again with my another interesting blog post. \ud83d\ude42<\/p>\n<p class=\"western\" align=\"justify\">\n","protected":false},"excerpt":{"rendered":"<p>Denoting, JavaScript Object Notation is a lightweight data interchange format. It is easy to read and write by humans, easy to parse and generate by machines. JSON format was first specified by Douglas Crockford around 2000. The internet media type for Json is application\/json with its extension as .json. What &hellip; <a href=\"https:\/\/mansainfotech.com\/blog\/json-what-how-why\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">JSON \u2013 What, How &#038; Why?<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":428,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-417","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-design-and-development"],"_links":{"self":[{"href":"https:\/\/mansainfotech.com\/blog\/wp-json\/wp\/v2\/posts\/417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mansainfotech.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mansainfotech.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mansainfotech.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mansainfotech.com\/blog\/wp-json\/wp\/v2\/comments?post=417"}],"version-history":[{"count":0,"href":"https:\/\/mansainfotech.com\/blog\/wp-json\/wp\/v2\/posts\/417\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mansainfotech.com\/blog\/wp-json\/wp\/v2\/media\/428"}],"wp:attachment":[{"href":"https:\/\/mansainfotech.com\/blog\/wp-json\/wp\/v2\/media?parent=417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mansainfotech.com\/blog\/wp-json\/wp\/v2\/categories?post=417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mansainfotech.com\/blog\/wp-json\/wp\/v2\/tags?post=417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}