{"id":148,"date":"2026-04-03T09:00:00","date_gmt":"2026-04-03T03:30:00","guid":{"rendered":"https:\/\/smitabharat.com\/blog\/?p=148"},"modified":"2026-10-10T21:20:38","modified_gmt":"2026-10-10T15:50:38","slug":"go-maps-examples","status":"publish","type":"post","link":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/","title":{"rendered":"Go Maps Explained with Simple Examples"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Go maps store values by name instead of by position, much like a phone book. In this post, you will learn to create maps, read and update them and loop over them safely. Each idea comes with a short example that you can run yourself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the last lesson on <a href=\"https:\/\/smitabharat.com\/blog\/go-slices-arrays-explained\/\">slices and arrays in Go<\/a>, you stored items by index. Maps solve a different problem. You will also use the comma ok pattern. It looks a lot like the error checks from <a href=\"https:\/\/smitabharat.com\/blog\/go-functions-beginners-guide\/\">writing and calling functions in Go<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Are Go Maps?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A map is a collection of key and value pairs. The key is the label you search by, and the value is the data you get back. For example, in a phone book the name is the key and the number is the value.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go maps find a value by its key very fast, even with millions of entries. So whenever you think &#8220;look up X by Y&#8221;, a map is usually the right tool.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating Go Maps<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are two ways to create a map. Both give you a map that is ready for new keys.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using a Map Literal<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>ages := map&#91;string]int{\n\t\"Asha\": 28,\n\t\"Ravi\": 34,\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Read <code>map[string]int<\/code> as &#8220;a map from string keys to int values&#8221;. Each line inside the braces adds one pair. Also, note the comma after the last pair, because Go requires it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using make<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>stock := make(map&#91;string]int)\nstock&#91;\"pens\"] += 10\nstock&#91;\"pens\"] += 5\nfmt.Println(stock&#91;\"pens\"]) \/\/ 15<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>make<\/code> function creates an empty map that is ready to use. Here <code>+=<\/code> works even on a new key, since a missing key starts at its zero value.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Adding, Updating and Reading Values<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>ages&#91;\"Meera\"] = 25 \/\/ add a new key\nages&#91;\"Ravi\"] = 35  \/\/ update an existing key\n\nfmt.Println(ages&#91;\"Ravi\"], len(ages)) \/\/ 35 3\nfmt.Println(ages&#91;\"Kiran\"])           \/\/ 0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The same square bracket syntax both adds and updates. However, reading a missing key like &#8220;Kiran&#8221; does not crash. Instead, Go quietly returns the zero value, which is 0 for an int.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Checking if a Key Exists in Go Maps<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">That quiet zero creates a problem. Did Kiran never exist, or is his age really 0? To find out, ask for a second value called <code>ok<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age, ok := ages&#91;\"Kiran\"]\nfmt.Println(age, ok) \/\/ 0 false\n\nif a, ok := ages&#91;\"Asha\"]; ok {\n\tfmt.Println(\"Asha is\", a)\n}\n\/\/ Asha is 28<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Go developers call this the comma ok idiom. The <code>ok<\/code> value is true only when the key is really there. The diagram below shows both lookups side by side.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-maps-examples-diagram-1024x640.png\" alt=\"Go Maps diagram showing a found key and a missing key with the comma ok check\" class=\"wp-image-150\" srcset=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-maps-examples-diagram-1024x640.png 1024w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-maps-examples-diagram-300x188.png 300w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-maps-examples-diagram-768x480.png 768w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-maps-examples-diagram.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>A found key returns its value and true, while a missing key returns the zero value and false.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Deleting Keys and Counting Items<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>delete(ages, \"Meera\")\nfmt.Println(len(ages)) \/\/ 2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>delete<\/code> function removes a key and its value. If the key does not exist, nothing happens, so you never need to check first. Then <code>len<\/code> tells you how many pairs remain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Looping Over Go Maps<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>for name, age := range ages {\n\tfmt.Println(name, age)\n}\n\/\/ Asha 28 and Ravi 35, in any order<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Range gives you each key and value. But watch out, because the order changes from run to run on purpose. If you need a fixed order, collect the keys in a slice and sort them first.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Counting Words: A Real Go Maps Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>words := &#91;]string{\"go\", \"is\", \"fun\", \"go\", \"go\"}\ncounts := map&#91;string]int{}\n\nfor _, w := range words {\n\tcounts&#91;w]++\n}\nfmt.Println(counts&#91;\"go\"], counts&#91;\"fun\"]) \/\/ 3 1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This small pattern appears in real projects all the time. For instance, you can count page visits, votes or log errors the same way.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Mistakes with Go Maps<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Error you see<\/th><th>Why it happens<\/th><th>How to fix it<\/th><\/tr><\/thead><tbody><tr><td>panic: assignment to entry in nil map<\/td><td>The code wrote to a map declared with var but never created.<\/td><td>Create it with make or {}.<\/td><\/tr><tr><td>invalid map key type []int<\/td><td>Slices cannot be keys.<\/td><td>Use a string, number or struct.<\/td><\/tr><tr><td>Wrong value, no error<\/td><td>A missing key returned zero.<\/td><td>Use the comma ok check.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The nil map panic is the classic one. A plain <code>var m map[string]int<\/code> can be read, but it cannot be written to. Map questions like this are common in my <a href=\"https:\/\/smitabharat.com\/blog\/go-lang-interview-questions-and-answers\/\">Go interview questions and answers<\/a>, so test yourself there.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Official Resources<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These pages come straight from the Go team, so they are always accurate and up to date.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/go.dev\/tour\/moretypes\/19\">A Tour of Go: Maps<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/go.dev\/blog\/maps\">Go blog: Go maps in action<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pkg.go.dev\/maps\">maps package documentation<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Quick Recap<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go maps store key and value pairs, like a phone book.<\/li>\n\n\n\n<li>Create them with a literal or make, never with a bare var.<\/li>\n\n\n\n<li>A missing key returns the zero value, so use value, ok := m[key].<\/li>\n\n\n\n<li>Remove pairs with delete and count them with len.<\/li>\n\n\n\n<li>Loop order is random, so sort the keys when order matters.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What&#8217;s Next?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Maps hold many values of one type. Next, we will group different kinds of data into one custom type using structs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Coming soon: Go Structs Explained for Beginners<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go maps store values by name instead of by position, much like a phone book. In this post, you will learn to create maps,&hellip;<\/p>\n","protected":false},"author":1,"featured_media":195,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_swapz_level":"","_swapz_series_part":0,"_swapz_hide_toc":false,"_swapz_hide_featured":false,"_swapz_description":"","footnotes":""},"categories":[15],"tags":[11,30,23,21],"swapz_series":[],"class_list":["post-148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-go-lang","tag-go-lang","tag-go-maps","tag-go-tutorial","tag-golang-basics"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Go Maps Explained with Simple Code Examples<\/title>\n<meta name=\"description\" content=\"Learn Go maps with simple examples: create, add, update, delete and loop, check keys with comma ok and avoid the nil map panic.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/smitabharat.com\/blog\/go-maps-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Go Maps Explained with Simple Code Examples\" \/>\n<meta property=\"og:description\" content=\"Learn Go maps with simple examples: create, add, update, delete and loop, check keys with comma ok and avoid the nil map panic.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smitabharat.com\/blog\/go-maps-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"Smita Bharat - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-03T03:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-10T15:50:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-maps-examples-featured-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Smita\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Smita\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-maps-examples\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-maps-examples\\\/\"},\"author\":{\"name\":\"Smita\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"headline\":\"Go Maps Explained with Simple Examples\",\"datePublished\":\"2026-04-03T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-maps-examples\\\/\"},\"wordCount\":704,\"publisher\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-maps-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-maps-examples-featured-1.png\",\"keywords\":[\"Go Lang\",\"Go Maps\",\"Go Tutorial\",\"Golang Basics\"],\"articleSection\":[\"Go Lang\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-maps-examples\\\/\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-maps-examples\\\/\",\"name\":\"Go Maps Explained with Simple Code Examples\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-maps-examples\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-maps-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-maps-examples-featured-1.png\",\"datePublished\":\"2026-04-03T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:38+00:00\",\"description\":\"Learn Go maps with simple examples: create, add, update, delete and loop, check keys with comma ok and avoid the nil map panic.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-maps-examples\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-maps-examples\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-maps-examples\\\/#primaryimage\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-maps-examples-featured-1.png\",\"contentUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-maps-examples-featured-1.png\",\"width\":1200,\"height\":630,\"caption\":\"Go Maps featured image: cards showing a map type, the comma ok check and delete\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-maps-examples\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go Maps Explained with Simple Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\",\"name\":\"Smita Bharat Blog\",\"description\":\"Golang &amp; Backend Development Tutorials and Interview Questions\",\"publisher\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"alternateName\":\"Smita Bharat\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\",\"name\":\"Smita\",\"logo\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/smitabharat.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Go Maps Explained with Simple Code Examples","description":"Learn Go maps with simple examples: create, add, update, delete and loop, check keys with comma ok and avoid the nil map panic.","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:\/\/smitabharat.com\/blog\/go-maps-examples\/","og_locale":"en_US","og_type":"article","og_title":"Go Maps Explained with Simple Code Examples","og_description":"Learn Go maps with simple examples: create, add, update, delete and loop, check keys with comma ok and avoid the nil map panic.","og_url":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/","og_site_name":"Smita Bharat - Blog","article_published_time":"2026-04-03T03:30:00+00:00","article_modified_time":"2026-10-10T15:50:38+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-maps-examples-featured-1.png","type":"image\/png"}],"author":"Smita","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Smita","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/#article","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/"},"author":{"name":"Smita","@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"headline":"Go Maps Explained with Simple Examples","datePublished":"2026-04-03T03:30:00+00:00","dateModified":"2026-10-10T15:50:38+00:00","mainEntityOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/"},"wordCount":704,"publisher":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-maps-examples-featured-1.png","keywords":["Go Lang","Go Maps","Go Tutorial","Golang Basics"],"articleSection":["Go Lang"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/","url":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/","name":"Go Maps Explained with Simple Code Examples","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/#primaryimage"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-maps-examples-featured-1.png","datePublished":"2026-04-03T03:30:00+00:00","dateModified":"2026-10-10T15:50:38+00:00","description":"Learn Go maps with simple examples: create, add, update, delete and loop, check keys with comma ok and avoid the nil map panic.","breadcrumb":{"@id":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smitabharat.com\/blog\/go-maps-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/#primaryimage","url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-maps-examples-featured-1.png","contentUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-maps-examples-featured-1.png","width":1200,"height":630,"caption":"Go Maps featured image: cards showing a map type, the comma ok check and delete"},{"@type":"BreadcrumbList","@id":"https:\/\/smitabharat.com\/blog\/go-maps-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smitabharat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Go Maps Explained with Simple Examples"}]},{"@type":"WebSite","@id":"https:\/\/smitabharat.com\/blog\/#website","url":"https:\/\/smitabharat.com\/blog\/","name":"Smita Bharat Blog","description":"Golang &amp; Backend Development Tutorials and Interview Questions","publisher":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"alternateName":"Smita Bharat","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/smitabharat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339","name":"Smita","logo":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/smitabharat.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/comments?post=148"}],"version-history":[{"count":1,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":151,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/148\/revisions\/151"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media\/195"}],"wp:attachment":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media?parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/categories?post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/tags?post=148"},{"taxonomy":"swapz_series","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/swapz_series?post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}