{"id":13468,"date":"2021-01-07T08:54:15","date_gmt":"2021-01-07T16:54:15","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=13468"},"modified":"2023-12-01T04:07:54","modified_gmt":"2023-12-01T12:07:54","slug":"java-indexof","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/java-indexof\/","title":{"rendered":"Java indexOf(): A How-To Guide"},"content":{"rendered":"\n<p><em>The Java indexOf() method finds the index position at which a specified string begins. This method lets you find a string within another string. If the value you specify is not present in the string through which you are searching, indexOf() returns -1.<\/em><\/p>\n\n\n\n<p>There are scenarios where you may want to retrieve the index of a particular character value or substring from within a larger string.<\/p>\n\n\n\n<p>For instance, suppose you are writing an inventory program for a fruit stand. You have a list of fruits in a string. One of your tasks may be to find where <em>Mango<\/em> appears in a list of fruits formatted as a string. This will let you test your program.<\/p>\n\n\n\n<p>That\u2019s where the <em>indexOf()<\/em> Java method comes in. <em>indexOf()<\/em> returns the index of a particular character or substring in a string. This tutorial will explore how to use the <em>indexOf()<\/em> method in Java, with reference to examples.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java indexOf() Method<\/h2>\n\n\n\n<p>The Java string indexOf() method retrieves the index value associated with a particular character or substring in a string. If the character or phrase does not occur in the string, <em>indexOf()<\/em> returns -1.<\/p>\n\n\n\n<p>The syntax of the <em>indexOf()<\/em> method is as follows:<\/p>\n\n\n\n<p>string_name.indexOf(substring, start_char)<\/p>\n\n\n\n<p>The <em>indexOf()<\/em> method takes in two parameters:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>substring<\/strong> is the character or substring whose start index position you want to find (required)<\/li><li><strong>start_char<\/strong> is the index position at which the search for the substring should begin (optional)<\/li><\/ul>\n\n\n\n<p>Let\u2019s walk through an example to illustrate the <em>indexOf()<\/em> method in Java and how it finds an occurrence of a specified character.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">indexOf() Java Example<\/h2>\n\n\n\n<p>Suppose we are operating a fruit stand, and we have a string that contains the top-five most popular fruits sold last month. We know that <em>Strawberry<\/em> was the third-most-popular fruit, but we want to know at what position it is stored in our list of fruits.<\/p>\n\n\n\n<p>To accomplish this task, we could use the <em>indexOf()<\/em> method. Here\u2019s an example that searches for the <a href=\"https:\/\/careerkarma.com\/blog\/java-string\/\">Java string<\/a> <em>Strawberry<\/em> in our list of fruits. This example returns the index within this string at which the string begins:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>public class FindStrawberry {\n\tpublic static void main(String args[]) {\n\t\tString fruits = &quot;Apple Pear Strawberry Grape Mango&quot;;\n\t\tint strawberry = fruits.indexOf(&quot;Strawberry&quot;);\n\t\tSystem.out.println(&quot;Strawberry appears at the index position &quot; + strawberry + &quot;.&quot;);\n\t}\n}\n<\/pre><\/div>\n\n\n\n<p>Our code returns:<\/p>\n\n\n\n<p><em>Strawberry appears at the index position 11.<\/em><\/p>\n\n\n\n<p>We define a class called <em>FindStrawberry<\/em> which stores the code for our procedure. Then, we define a <a href=\"https:\/\/careerkarma.com\/blog\/java-variables\/\">Java variable<\/a> called <em>fruits.<\/em> This variable stores the list of the top-five most popular fruits stored last month.<\/p>\n\n\n\n<p>Next, we use the <em>indexOf()<\/em> method to find where the substring <em>Strawberry<\/em> starts in the <em>fruits<\/em> string. Finally, we print out a message to the console, which states, \u201cStrawberry appears at the index position \u201c. This statement is followed by the index number calculated by the <em>indexOf()<\/em> method and stored in the <em>strawberry<\/em> variable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">indexOf() Java Example: Start at a Specified Index<\/h2>\n\n\n\n<p>We can use the optional <em>start_char<\/em> method to instruct indexOf() to start searching for a substring after a certain index value in our string.<\/p>\n\n\n\n<p>For instance, suppose that we want to find out the index position at which <em>Mango<\/em> appears in our string. We know that <em>Mango<\/em> is less popular than <em>Strawberry<\/em>, and we also know that it appears in the top-five.<\/p>\n\n\n\n<p><em>Strawberry<\/em> starts at the index position 11, as we discovered above, and ends at the index position 20 (11 + length of the word <em>Strawberry<\/em>). So, we know that our search should start at index position 20.<\/p>\n\n\n\n<p>We could use the indexOf() method to find the index value at which <em>Mango<\/em> begins in our <em>fruits<\/em> string. Here\u2019s the code we would use:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>public class FindMango {\n\tpublic static void main(String args[]) {\n\t\tString fruits = &quot;Apple Pear Strawberry Grape Mango&quot;;\n\t\tint mango = fruits.indexOf(&quot;Mango&quot;, 20);\n\t\tSystem.out.println(&quot;Mango appears at the index position &quot; + mango + &quot;.&quot;);\n\t}\n}\n<\/pre><\/div>\n\n\n\n<p>Our code returns:<\/p>\n\n\n\n<p><em>Mango appears at index position 28.<\/em><\/p>\n\n\n\n<p>This example is similar to our first one. But, in this example we have substituted our variable and class names to use the word <em>mango<\/em> instead of <em>strawberry<\/em>.<\/p>\n\n\n\n<p>We have specified the <em>start_pos<\/em> parameter in the <em>indexOf()<\/em> method and assigned it the value 20. This means <em>indexOf()<\/em> will start searching for <em>Mango<\/em> after the index position 20 in our <em>fruits<\/em> string.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Handling a String That is Not Present<\/h2>\n\n\n\n<p>You may be wondering what you should do if the value for which you are searching does not appear in your target string.<\/p>\n\n\n\n<p>If your program depends on a value being present in a string, you should check if the value exists before using <em>indexOf()<\/em>. You can check if a value exists using a <a href=\"https:\/\/careerkarma.com\/blog\/if-else-java\/\">Java if statement<\/a>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>public class FindMango {\n\tpublic static void main(String args[]) {\n\t\tString fruits = &quot;Apple Pear Strawberry Grape Mango&quot;;\n\t\tint mango = fruits.indexOf(&quot;Mango&quot;, 20);\n\t\tif (mango != -1) {\n        \tSystem.out.println(&quot;Mango appears at the index position &quot; + mango + &quot;.&quot;);\n        } else {\n       \t\tSystem.out.println(&quot;Mango is not in the specified string.&quot;);\n        }\n\t}\n}\n<\/pre><\/div>\n\n\n\n<p>We have added an if statement in which our print statements are enclosed.<\/p>\n\n\n\n<p>If our indexOf() method returns -1, our program could not find a value in the specified string. Our if statement checks if &#8220;mango&#8221; is equal to -1. If it is, the contents of the &#8220;else&#8221; statement execute. If &#8220;mango&#8221; is not equal to -1, our &#8220;if&#8221; statement executes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The <em>indexOf()<\/em> method is used in Java to retrieve the index position at which a particular character or substring appears in another string. You can use a second argument to start your search after a particular index number in the string.<\/p>\n\n\n\n<p>If the specified letter or letters cannot be found, indexOf() returns -1.<\/p>\n\n\n\n<p>Do you want to become a professional Java developer? Check out our <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-java\/\">How to Learn Java guide<\/a> for expert tips on learning this industry-standard programming language.<\/p>\n","protected":false},"excerpt":{"rendered":"The Java indexOf() method finds the index position at which a specified string begins. This method lets you find a string within another string. If the value you specify is not present in the string through which you are searching, indexOf() returns -1. There are scenarios where you may want to retrieve the index of&hellip;","protected":false},"author":240,"featured_media":13373,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17289],"tags":[],"class_list":{"0":"post-13468","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-java"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Java","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"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>Java indexOf(): A How-To Guide: A Tutorial | Career Karma<\/title>\n<meta name=\"description\" content=\"How does indexOf work? Learn more about the Java indexOf method and how to use it in this helpful tutorial.\" \/>\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\/java-indexof\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java indexOf(): A How-To Guide\" \/>\n<meta property=\"og:description\" content=\"How does indexOf work? Learn more about the Java indexOf method and how to use it in this helpful tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/java-indexof\/\" \/>\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=\"2021-01-07T16:54:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:07:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-sitting-on-green-chair-while-using-laptop-374831.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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-indexof\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-indexof\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Java indexOf(): A How-To Guide\",\"datePublished\":\"2021-01-07T16:54:15+00:00\",\"dateModified\":\"2023-12-01T12:07:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-indexof\/\"},\"wordCount\":857,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-indexof\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-sitting-on-green-chair-while-using-laptop-374831.jpg\",\"articleSection\":[\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/java-indexof\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-indexof\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/java-indexof\/\",\"name\":\"Java indexOf(): A How-To Guide: A Tutorial | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-indexof\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-indexof\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-sitting-on-green-chair-while-using-laptop-374831.jpg\",\"datePublished\":\"2021-01-07T16:54:15+00:00\",\"dateModified\":\"2023-12-01T12:07:54+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"How does indexOf work? Learn more about the Java indexOf method and how to use it in this helpful tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-indexof\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/java-indexof\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-indexof\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-sitting-on-green-chair-while-using-laptop-374831.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-sitting-on-green-chair-while-using-laptop-374831.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-indexof\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\/\/careerkarma.com\/blog\/java\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Java indexOf(): A How-To Guide\"}]},{\"@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":"Java indexOf(): A How-To Guide: A Tutorial | Career Karma","description":"How does indexOf work? Learn more about the Java indexOf method and how to use it in this helpful tutorial.","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\/java-indexof\/","og_locale":"en_US","og_type":"article","og_title":"Java indexOf(): A How-To Guide","og_description":"How does indexOf work? Learn more about the Java indexOf method and how to use it in this helpful tutorial.","og_url":"https:\/\/careerkarma.com\/blog\/java-indexof\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2021-01-07T16:54:15+00:00","article_modified_time":"2023-12-01T12:07:54+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-sitting-on-green-chair-while-using-laptop-374831.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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/java-indexof\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/java-indexof\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Java indexOf(): A How-To Guide","datePublished":"2021-01-07T16:54:15+00:00","dateModified":"2023-12-01T12:07:54+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-indexof\/"},"wordCount":857,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-indexof\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-sitting-on-green-chair-while-using-laptop-374831.jpg","articleSection":["Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/java-indexof\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/java-indexof\/","url":"https:\/\/careerkarma.com\/blog\/java-indexof\/","name":"Java indexOf(): A How-To Guide: A Tutorial | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-indexof\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-indexof\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-sitting-on-green-chair-while-using-laptop-374831.jpg","datePublished":"2021-01-07T16:54:15+00:00","dateModified":"2023-12-01T12:07:54+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"How does indexOf work? Learn more about the Java indexOf method and how to use it in this helpful tutorial.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/java-indexof\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/java-indexof\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/java-indexof\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-sitting-on-green-chair-while-using-laptop-374831.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-sitting-on-green-chair-while-using-laptop-374831.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/java-indexof\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/careerkarma.com\/blog\/java\/"},{"@type":"ListItem","position":3,"name":"Java indexOf(): A How-To Guide"}]},{"@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\/13468","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=13468"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/13468\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/13373"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=13468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=13468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=13468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}