{"id":6318,"date":"2024-01-11T16:40:00","date_gmt":"2024-01-11T16:40:00","guid":{"rendered":"https:\/\/codehim.com\/?p=6318"},"modified":"2024-01-22T14:44:14","modified_gmt":"2024-01-22T09:44:14","slug":"javascript-treeview-with-search","status":"publish","type":"post","link":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/","title":{"rendered":"JavaScript Treeview with Search"},"content":{"rendered":"<p>This JavaScript code snippet helps you to create treeview navigation with a search box. It gets JSON format data and renders a filterable treeview dynamically. Moreover, it displays base64-based icons for files and folders\/directories.<\/p>\n<h2>How to Create JavaScript Treeview with Search<\/h2>\n<p>1. First of all, create the HTML structure for the treeview as follows:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div  class=\"container\"&gt;\r\n   &lt;div class='widget'&gt;\r\n      &lt;input placeholder=\"filter...\" id=\"filterInput\" oninput=\"solve()\" type=\"text\"\/&gt;\r\n      &lt;div id=\"folders\"&gt;&lt;\/div&gt;\r\n   &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>2. After that, style the treeview navigation using the following CSS styles.<\/p>\n<pre class=\"prettyprint linenums lang-css\">body {\r\n  margin-top: 20px;\r\n  background-color: #ECEFF1;\r\n}\r\n\r\n.widget {\r\n  padding: 18px;\r\n  background-color: #fff;\r\n  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24);\r\n}\r\n\r\n.widget &gt; input { \r\n    display: block;\r\n    width: 100%;\r\n    min-height: 30px;\r\n    margin-bottom: 20px;\r\n    border: 0 none;\r\n    border-bottom: 1px solid #ccc;\r\n    outline: none;\r\n  }\r\n\r\n.folder-container {\r\n  margin: 10px;\r\n  padding: 0 20px;\r\n  margin: 0;\r\n}\r\n\r\n.folder-wrapper {\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n  list-style-type: none;\r\n}\r\n\r\n.file-item,\r\n.folder-item {\r\n  margin-left: -16px;\r\n  padding-left: 20px;\r\n\r\n  list-style-type: none;\r\n}\r\n\r\n.file-item {\r\n  background: transparent  url('data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8\/9hAAAAsUlEQVQ4T2NkgIKE2q4DMDZW+j+jAgPj\/\/0LmssSkeUZEQZ0\/1\/QXArnoxuSUNPdwMDIEMDwn2HDgpbSBpg8aQYw\/H\/PwMCQwMDIMHFBc9kCkCGkGODAwMAAwiBd9TDXYhiQUNtdwPCfgR97ePy7uKClfENCLcK7RLsA2UC8BoADi4HhP44YObigpfTAsHfBgMcC3vwAzze0TAcUuKDrAMN\/RlwJCNVcRoaPC5pLA0CCALOMnRHTr6OKAAAAAElFTkSuQmCC') no-repeat left center;\r\n}\r\n\r\n.folder-item {\r\n  font-weight: bold;\r\n  background: transparent  url('data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8\/9hAAAA6UlEQVQ4T62TvQ3CMBCF31OgDxPACGwATAAjeAOgSKpECgoCiRTABmYDNgA2yAawAUpNwiGHH0GBlATcuPH3vbPvTPy4+COPXKCCpY30sgORPIU6dLtF5FTeYgWgA2KtQ1fnQj8amQ2C81fJVcZ65sZUfhTr0GmrYN5iZjWLpIqwC0oLVjah8hd7WPUBsvQIwC4ieD9zFwgDELuyMCCHuwDcAliWFgg2jwoQgxxWEDzeICfZqSDoPa9QHjZpVq1B5UUnEIXa91GhSKKnrm3mQEqXngNyMNNqBKYD\/QqSsQ6d1X8+U4X0F3IDjRRPOikDqHUAAAAASUVORK5CYII=') no-repeat left center;\r\n}\r\n<\/pre>\n<p>3. Finally, functionalize the treeview navigation with JavaScript.<\/p>\n<pre class=\"prettyprint linenums lang-js\">const folders =\r\n  {\r\n    type: 'dir',\r\n    name: 'app',\r\n    children: [\r\n      {\r\n        type: 'file',\r\n        name: 'index.html'\r\n      },\r\n      {\r\n        type: 'dir',\r\n        name: 'js',\r\n        children: [\r\n          {\r\n            type: 'file',\r\n            name: 'main.js'\r\n          },\r\n          {\r\n            type: 'file',\r\n            name: 'app.js'\r\n          },\r\n          {\r\n            type: 'file',\r\n            name: 'misc.js'\r\n          },\r\n          {\r\n            type: 'dir',\r\n            name: 'vendor',\r\n            children: [\r\n              {\r\n                type: 'file',\r\n                name: 'jquery.js'\r\n              },\r\n              {\r\n                type: 'file',\r\n                name: 'underscore.js'\r\n              }\r\n            ]\r\n          }\r\n        ]\r\n      },\r\n      {\r\n        type: 'dir',\r\n        name: 'css',\r\n        children: [\r\n          {\r\n            type: 'file',\r\n            name: 'reset.css'\r\n          },\r\n          {\r\n            type: 'file',\r\n            name: 'main.css'\r\n          }\r\n        ]\r\n      }\r\n    ]\r\n  };\r\n\r\nfunction displayJsonTree( data) {\r\n  var htmlRetStr = \"&lt;ul class='folder-container'&gt;\";\r\n  for (var key in data) {\r\n    if (typeof(data[key])== 'object' &amp;&amp; data[key] != null) {\r\n      htmlRetStr += displayJsonTree( data[key] );\r\n      htmlRetStr += '&lt;\/ul&gt;&lt;\/li&gt;';\r\n    } else if(data[key]=='dir'){\r\n      htmlRetStr += \"&lt;li class='folder-item'&gt;\" + data[\"name\"]+\"&lt;\/li&gt;&lt;li class='folder-wrapper'&gt;\";\r\n    }\r\n    else if( key=='name' &amp;&amp; data['type']!='dir' ){\r\n      htmlRetStr += \"&lt;li class='file-item'&gt;\" + data['name']+\"&lt;\/li&gt;\";\r\n    }\r\n  }\r\n  return( htmlRetStr );\r\n}\r\nfunction filterJson(data,string) {\r\n  arr = [];\r\n  for (var key in data)\r\n    if (typeof(data[key]) == 'object' &amp;&amp; data[key] != null) {\r\n      if (data['name'].indexOf(string) &lt;= -1) {\r\n        for (var i = 0; i &lt; data.children.length; i++) {\r\n          arr=arr.concat(filterJson(data.children[i], string));\r\n        }\r\n        return arr;\r\n      }\r\n    }\r\n    else {\r\n        if (data['name'].indexOf(string) &gt; -1) {\r\n          arr = arr.concat(data);\r\n          return arr;\r\n        }\r\n    }\r\n}\r\ndocument.getElementById(\"folders\").innerHTML= displayJsonTree(folders);\r\nfunction solve() {\r\n  var toSearch=document.getElementById('filterInput').value;\r\n  if(toSearch.length==0){\r\n    document.getElementById(\"folders\").innerHTML= displayJsonTree(folders);\r\n  }\r\n  else {\r\n    var str = \"Searching for: \" + document.getElementById('filterInput').value + \"\\n\";\r\n    document.getElementById(\"folders\").innerHTML = str + displayJsonTree(filterJson(folders, document.getElementById('filterInput').value));\r\n  }\r\n}<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully integrated this JavaScript treeview navigation into your project. If you have any questions or facing any issues, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code snippet helps you to create treeview navigation with a search box. It gets JSON format data and&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6323,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[38],"tags":[223],"class_list":["post-6318","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-menu","tag-treeview"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript Treeview with Search &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a lightweight JavaScript code snippet to create a treeview navigation with search. You can view demo and download code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Treeview with Search &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a lightweight JavaScript code snippet to create a treeview navigation with search. You can view demo and download code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-11T16:40:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T09:44:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/javascript-treeview-with-search.png\" \/>\n\t<meta property=\"og:image:width\" content=\"909\" \/>\n\t<meta property=\"og:image:height\" content=\"682\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"JavaScript Treeview with Search\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:44:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/\"},\"wordCount\":106,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/javascript-treeview-with-search.png\",\"keywords\":[\"Treeview\"],\"articleSection\":[\"Menu &amp; Nav\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/\",\"url\":\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/\",\"name\":\"JavaScript Treeview with Search &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/javascript-treeview-with-search.png\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:44:14+00:00\",\"description\":\"Here is a lightweight JavaScript code snippet to create a treeview navigation with search. You can view demo and download code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/javascript-treeview-with-search.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/javascript-treeview-with-search.png\",\"width\":909,\"height\":682,\"caption\":\"JavaScript Treeview with Search\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Menu &amp; Nav\",\"item\":\"https:\/\/codehim.com\/category\/menu\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Treeview with Search\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Treeview with Search &#8212; CodeHim","description":"Here is a lightweight JavaScript code snippet to create a treeview navigation with search. You can view demo and download code.","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:\/\/codehim.com\/menu\/javascript-treeview-with-search\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Treeview with Search &#8212; CodeHim","og_description":"Here is a lightweight JavaScript code snippet to create a treeview navigation with search. You can view demo and download code.","og_url":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-11T16:40:00+00:00","article_modified_time":"2024-01-22T09:44:14+00:00","og_image":[{"width":909,"height":682,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/javascript-treeview-with-search.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"JavaScript Treeview with Search","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:44:14+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/"},"wordCount":106,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/javascript-treeview-with-search.png","keywords":["Treeview"],"articleSection":["Menu &amp; Nav"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/","url":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/","name":"JavaScript Treeview with Search &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/javascript-treeview-with-search.png","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:44:14+00:00","description":"Here is a lightweight JavaScript code snippet to create a treeview navigation with search. You can view demo and download code.","breadcrumb":{"@id":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/javascript-treeview-with-search.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/javascript-treeview-with-search.png","width":909,"height":682,"caption":"JavaScript Treeview with Search"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/menu\/javascript-treeview-with-search\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Menu &amp; Nav","item":"https:\/\/codehim.com\/category\/menu\/"},{"@type":"ListItem","position":3,"name":"JavaScript Treeview with Search"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":7758,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=6318"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6318\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/6323"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=6318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=6318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=6318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}