{"id":18593,"date":"2020-06-26T11:05:44","date_gmt":"2020-06-26T18:05:44","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=18593"},"modified":"2023-12-01T03:35:41","modified_gmt":"2023-12-01T11:35:41","slug":"ruby-each-with-index","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/","title":{"rendered":"Ruby Each with Index"},"content":{"rendered":"\n<p>When you\u2019re programming, you\u2019ll use and encounter various data structures including arrays and hashes. Eventually, you\u2019ll want to iterate through each item in an array or hash to extract or transform the information in these data structures. The ability to transverse through an object is called enumeration.<br><\/p>\n\n\n\n<p>Ruby has several built-in methods to go through each item of an array or hash and return the information you need. These built-in enumerates include methods like `map`, `uniq`, `include?`, as well as several others. In this article, we will discuss how to use the enumerable `each_with_index` as well as the difference between `each_with_index` and `each.with_index()`.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Each with Index<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"667\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/samson-ZGjbiukp_-A-unsplash.jpg\" alt=\"\" class=\"wp-image-18594\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/samson-ZGjbiukp_-A-unsplash.jpg 1000w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/samson-ZGjbiukp_-A-unsplash-768x512.jpg 768w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/samson-ZGjbiukp_-A-unsplash-770x514.jpg 770w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/samson-ZGjbiukp_-A-unsplash-20x13.jpg 20w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/samson-ZGjbiukp_-A-unsplash-385x257.jpg 385w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption class=\"wp-element-caption\">Applying each_with_index to print a list of Fortune 500 companies.<br><\/figcaption><\/figure>\n\n\n\n<p>Each with Index does what the name indicates: it iterates through each element in an array or hash, and extracts the element, as well as the index (the element\u2019s place in the array) and will transform both the element and its index based on the code you have written.<br><\/p>\n\n\n\n<p>The syntax is:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>array.each_with_index do | element, index |\n\tputs \"#{element} is number #{index} in the array\"\nend\n<\/pre><\/div>\n\n\n\n<p>Here\u2019s another example:&nbsp;<\/p>\n\n\n\n<p>Let\u2019s say we have an array of the top ten Fortune 500 Companies from 2020, and we wanted to output them in a string with their rank. We might write some code that looked like this:&nbsp;<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>top_10 = [\"Walmart\", \"Exxon Mobil\", \"Apple\", \"Berkshire Hathaway\", \"Amazon.com\", \"UnitedHealth Group\", \"McKesson\", \"CVS Health\", \"AT&amp;T\", \"AmerisourceBergen\"]\n  top_10.each_with_index do | company, index |\n    puts \"#{index}. #{company}\"\n  end\n<\/pre><\/div>\n\n\n\n<p>The output of our code would be:<\/p>\n\n\n\n<p>0. Walmart<\/p>\n\n\n\n<p>1. Exxon Mobil<\/p>\n\n\n\n<p>2. Apple<\/p>\n\n\n\n<p>3. Berkshire Hathaway<\/p>\n\n\n\n<p>4. Amazon.com<\/p>\n\n\n\n<p>5. UnitedHealth Group<\/p>\n\n\n\n<p>6. McKesson<\/p>\n\n\n\n<p>7. CVS Health<\/p>\n\n\n\n<p>8. AT&amp;T<\/p>\n\n\n\n<p>9. AmerisourceBergen<br><\/p>\n\n\n\n<p>Here we see the index puts the index number followed by the company name. The issue here is that the first item in an array has an index of 0. But for our purposes, we would like to start the list with the number one.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">each.with_index()<\/h2>\n\n\n\n<p>A second option is to use <code>each.with_index<\/code> instead of <code>each_with_index<\/code>. The two methods look very similar, but <code>each.with_index<\/code> takes in an optional argument of where to start the count.<br><\/p>\n\n\n\n<p>If you do not include an argument, the index will start at 0. If you would like your index to start with a different number, you would write <code>array.each.with_index(integer)<\/code>. Again, this does not change the index of an element in the array, it only changes the output.<br><\/p>\n\n\n\n<p>Here\u2019s how we applied it to our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>top_10 = [\"Walmart\", \"Exxon Mobil\", \"Apple\", \"Berkshire Hathaway\", \"Amazon.com\", \"UnitedHealth Group\", \"McKesson\", \"CVS Health\", \"AT&amp;T\", \"AmerisourceBergen\"]\n  top_10.each.with_index(1) do | company, index |\n    puts \"#{index}. #{company}\"\n  end\n<\/pre><\/div>\n\n\n\n<p>The output of our code would be:<\/p>\n\n\n\n<p>1. Walmart<\/p>\n\n\n\n<p>2. Exxon Mobil<\/p>\n\n\n\n<p>3. Apple<\/p>\n\n\n\n<p>4. Berkshire Hathaway<\/p>\n\n\n\n<p>5. Amazon.com<\/p>\n\n\n\n<p>6. UnitedHealth Group<\/p>\n\n\n\n<p>7. McKesson<\/p>\n\n\n\n<p>8. CVS Health<\/p>\n\n\n\n<p>9. AT&amp;T<\/p>\n\n\n\n<p>10. AmerisourceBergen<br><\/p>\n\n\n\n<p>It worked again!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>In this article we learned how to use Ruby\u2019s enumerable `each_with_index` as well as how to circumvent the index starting with the number zero, using `each.with_index()`. You can find more on other <a href=\"https:\/\/careerkarma.com\/blog\/ruby-array-methods\/\">Ruby Array Methods<\/a> here. If you want to learn more about what you can build with Ruby, check out our article, \u201d<a href=\"https:\/\/careerkarma.com\/blog\/what-is-ruby-used-for\/\"><strong>What Is Ruby Code Used For?<\/strong><\/a>\u201d<\/p>\n\n\n\n<p><br><strong>Let <\/strong><a href=\"https:\/\/careerkarma.com\/\"><strong>Career Karma<\/strong><\/a><strong> help you find the best way to start your career making web applications with Ruby.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"When you\u2019re programming, you\u2019ll use and encounter various data structures including arrays and hashes. Eventually, you\u2019ll want to iterate through each item in an array or hash to extract or transform the information in these data structures. The ability to transverse through an object is called enumeration. Ruby has several built-in methods to go through&hellip;","protected":false},"author":240,"featured_media":9209,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17278],"tags":[],"class_list":{"0":"post-18593","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-ruby"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Ruby","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":"","is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Ruby Each with Index: A Complete Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"Each with Index is a Ruby enumerable that iterates through each element of an array or hash and returns the element and its index value.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ruby Each with Index\" \/>\n<meta property=\"og:description\" content=\"Each with Index is a Ruby enumerable that iterates through each element of an array or hash and returns the element and its index value.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-26T18:05:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:35:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-B3l0g6HLxr8-unsplash-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"667\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Ruby Each with Index\",\"datePublished\":\"2020-06-26T18:05:44+00:00\",\"dateModified\":\"2023-12-01T11:35:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/\"},\"wordCount\":485,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-B3l0g6HLxr8-unsplash-1.jpg\",\"articleSection\":[\"Ruby\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/\",\"name\":\"Ruby Each with Index: A Complete Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-B3l0g6HLxr8-unsplash-1.jpg\",\"datePublished\":\"2020-06-26T18:05:44+00:00\",\"dateModified\":\"2023-12-01T11:35:41+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"Each with Index is a Ruby enumerable that iterates through each element of an array or hash and returns the element and its index value.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-B3l0g6HLxr8-unsplash-1.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-B3l0g6HLxr8-unsplash-1.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ruby\",\"item\":\"https:\/\/careerkarma.com\/blog\/ruby\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ruby Each with Index\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Ruby Each with Index: A Complete Guide | Career Karma","description":"Each with Index is a Ruby enumerable that iterates through each element of an array or hash and returns the element and its index value.","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:\/\/careerkarma.com\/blog\/ruby-each-with-index\/","og_locale":"en_US","og_type":"article","og_title":"Ruby Each with Index","og_description":"Each with Index is a Ruby enumerable that iterates through each element of an array or hash and returns the element and its index value.","og_url":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-06-26T18:05:44+00:00","article_modified_time":"2023-12-01T11:35:41+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-B3l0g6HLxr8-unsplash-1.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Ruby Each with Index","datePublished":"2020-06-26T18:05:44+00:00","dateModified":"2023-12-01T11:35:41+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/"},"wordCount":485,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-B3l0g6HLxr8-unsplash-1.jpg","articleSection":["Ruby"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/","url":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/","name":"Ruby Each with Index: A Complete Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-B3l0g6HLxr8-unsplash-1.jpg","datePublished":"2020-06-26T18:05:44+00:00","dateModified":"2023-12-01T11:35:41+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"Each with Index is a Ruby enumerable that iterates through each element of an array or hash and returns the element and its index value.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-B3l0g6HLxr8-unsplash-1.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-B3l0g6HLxr8-unsplash-1.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/ruby-each-with-index\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Ruby","item":"https:\/\/careerkarma.com\/blog\/ruby\/"},{"@type":"ListItem","position":3,"name":"Ruby Each with Index"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=18593"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18593\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/9209"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=18593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=18593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=18593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}