{"id":4105,"date":"2022-04-15T11:01:15","date_gmt":"2022-04-15T11:01:15","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=4105"},"modified":"2022-04-15T11:01:15","modified_gmt":"2022-04-15T11:01:15","slug":"json-vs-bson","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/","title":{"rendered":"JSON Vs BSON"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-4106\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/json-vs-bson.webp\" alt=\"\" width=\"454\" height=\"195\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/json-vs-bson.webp 454w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/json-vs-bson-300x129.webp 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/json-vs-bson-390x168.webp 390w\" sizes=\"(max-width: 454px) 100vw, 454px\" \/><\/p>\n<table width=\"682\">\n<tbody>\n<tr>\n<td width=\"341\"><strong>\u00a0<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 BSON<\/strong><\/td>\n<td width=\"341\"><strong>\u00a0<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 JSON<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"341\">\u00a0<\/p>\n<p>It is binary file format.<\/td>\n<td width=\"341\">\u00a0<\/p>\n<p>It is standard file format.<\/p>\n<p>\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"341\">\u00a0<\/p>\n<p>BSON is faster than JSON.<\/td>\n<td width=\"341\">\u00a0<\/p>\n<p>JSON is comparatively less than BSON.<\/td>\n<\/tr>\n<tr>\n<td width=\"341\">\u00a0<\/p>\n<p>BSON having more space is consumed.<\/td>\n<td width=\"341\">\u00a0<\/p>\n<p>JSON comparatively less space.<\/p>\n<p>\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"341\">\u00a0<\/p>\n<p>BSON is used to store data.<\/td>\n<td width=\"341\">\u00a0<\/p>\n<p>JSON is used transmission the data.<\/p>\n<p>\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"341\">\u00a0<\/p>\n<p>BSON is lightweight, fast and traversable.<\/td>\n<td width=\"341\">\u00a0<\/p>\n<p>In JSON key value pair only used for transmission of data.<\/td>\n<\/tr>\n<tr>\n<td width=\"341\">BSON which consist of a list of ordered elements containing a field name, type and a value. Field name types are typically string.<\/td>\n<td width=\"341\">JSON is language independent format used for asynchronous server browser communication.<\/td>\n<\/tr>\n<tr>\n<td width=\"341\">BSON on the other hand just indexes on the relevant content and skips all the content which does not have to be in use.<\/td>\n<td width=\"341\">\u00a0<\/p>\n<p>JSON does not skip rather skims through all the content.<\/td>\n<\/tr>\n<tr>\n<td width=\"341\">\u00a0<\/p>\n<p>Encoding and Decoding technique becomes faster.<\/td>\n<td width=\"341\">\u00a0<\/p>\n<p>There is no such technique.<\/td>\n<\/tr>\n<tr>\n<td width=\"341\">In BSON another hand needs to be parsed as they are easy for machines to parse and generate.<\/td>\n<td width=\"341\">In JSON need not be parsed as they are in a human-readable format already.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 BSON \u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 JSON \u00a0 It is binary file format. \u00a0 It is standard file format. \u00a0 \u00a0 BSON is faster than JSON. \u00a0 JSON is comparatively less than BSON. \u00a0 BSON having more space is consumed. \u00a0 JSON comparatively less space. \u00a0 \u00a0 BSON is used to store data. \u00a0 JSON is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16831],"tags":[16952,16954,16956,16947,16950,16948,16955,16949,16953,16951],"class_list":["post-4105","post","type-post","status-publish","format-standard","hentry","category-mongodb","tag-bson-example","tag-bson-format","tag-bson-vs-json-example","tag-difference-between-json-and-bson","tag-introduction-to-json-and-bson-in-mongodb","tag-json-and-bson","tag-json-to-bson","tag-json-vs-bson","tag-mongodb-bson","tag-what-is-the-difference-between-bson-and-json"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JSON Vs BSON - MongoDB Interview Questions and Answers - Wikitechy<\/title>\n<meta name=\"description\" content=\"JSON Vs BSON - Difference Between JSON and BSON - It is binary file format. It is standard file format. BSON is faster than JSON.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JSON Vs BSON - MongoDB Interview Questions and Answers - Wikitechy\" \/>\n<meta property=\"og:description\" content=\"JSON Vs BSON - Difference Between JSON and BSON - It is binary file format. It is standard file format. BSON is faster than JSON.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-15T11:01:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/json-vs-bson.webp\" \/>\n<meta name=\"author\" content=\"webmaster\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webmaster\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/mongodb\\\/json-vs-bson\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/mongodb\\\/json-vs-bson\\\/\"},\"author\":{\"name\":\"webmaster\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/f785ba3ecc599133e65ab6138042a3e4\"},\"headline\":\"JSON Vs BSON\",\"datePublished\":\"2022-04-15T11:01:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/mongodb\\\/json-vs-bson\\\/\"},\"wordCount\":194,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/mongodb\\\/json-vs-bson\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/json-vs-bson.webp\",\"keywords\":[\"bson example\",\"bson format\",\"bson vs json example\",\"difference between json and bson\",\"introduction to json and bson in mongodb\",\"json and bson\",\"json to bson\",\"json vs bson\",\"mongodb bson\",\"what is the difference between bson and json\"],\"articleSection\":[\"mongodb\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/mongodb\\\/json-vs-bson\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/mongodb\\\/json-vs-bson\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/mongodb\\\/json-vs-bson\\\/\",\"name\":\"JSON Vs BSON - MongoDB Interview Questions and Answers - Wikitechy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/mongodb\\\/json-vs-bson\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/mongodb\\\/json-vs-bson\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/json-vs-bson.webp\",\"datePublished\":\"2022-04-15T11:01:15+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/f785ba3ecc599133e65ab6138042a3e4\"},\"description\":\"JSON Vs BSON - Difference Between JSON and BSON - It is binary file format. It is standard file format. BSON is faster than JSON.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/mongodb\\\/json-vs-bson\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/mongodb\\\/json-vs-bson\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/json-vs-bson.webp\",\"contentUrl\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/json-vs-bson.webp\",\"width\":454,\"height\":195},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/f785ba3ecc599133e65ab6138042a3e4\",\"name\":\"webmaster\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"caption\":\"webmaster\"},\"sameAs\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\"],\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/webmaster\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JSON Vs BSON - MongoDB Interview Questions and Answers - Wikitechy","description":"JSON Vs BSON - Difference Between JSON and BSON - It is binary file format. It is standard file format. BSON is faster than JSON.","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":"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/","og_locale":"en_US","og_type":"article","og_title":"JSON Vs BSON - MongoDB Interview Questions and Answers - Wikitechy","og_description":"JSON Vs BSON - Difference Between JSON and BSON - It is binary file format. It is standard file format. BSON is faster than JSON.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/","og_site_name":"Wikitechy","article_published_time":"2022-04-15T11:01:15+00:00","og_image":[{"url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/json-vs-bson.webp","type":"","width":"","height":""}],"author":"webmaster","twitter_card":"summary_large_image","twitter_misc":{"Written by":"webmaster","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/"},"author":{"name":"webmaster","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"headline":"JSON Vs BSON","datePublished":"2022-04-15T11:01:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/"},"wordCount":194,"commentCount":0,"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/json-vs-bson.webp","keywords":["bson example","bson format","bson vs json example","difference between json and bson","introduction to json and bson in mongodb","json and bson","json to bson","json vs bson","mongodb bson","what is the difference between bson and json"],"articleSection":["mongodb"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/","name":"JSON Vs BSON - MongoDB Interview Questions and Answers - Wikitechy","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/json-vs-bson.webp","datePublished":"2022-04-15T11:01:15+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"description":"JSON Vs BSON - Difference Between JSON and BSON - It is binary file format. It is standard file format. BSON is faster than JSON.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/mongodb\/json-vs-bson\/#primaryimage","url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/json-vs-bson.webp","contentUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/json-vs-bson.webp","width":454,"height":195},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4","name":"webmaster","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","caption":"webmaster"},"sameAs":["https:\/\/www.wikitechy.com\/interview-questions"],"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=4105"}],"version-history":[{"count":1,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4105\/revisions"}],"predecessor-version":[{"id":4107,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4105\/revisions\/4107"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=4105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=4105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=4105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}