

{"id":120334,"date":"2023-11-20T18:00:11","date_gmt":"2023-11-20T12:30:11","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=120334"},"modified":"2023-11-20T18:21:42","modified_gmt":"2023-11-20T12:51:42","slug":"break-and-continue-statements-in-c","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/","title":{"rendered":"Break and Continue Statements in C"},"content":{"rendered":"<p>The idea of control flow is crucial to programming. It describes the non-linear progression of code execution across our programs based on the specified logic. In C, control statements like break and continue let us change the loop&#8217;s execution by modifying the language&#8217;s normal sequential flow.<\/p>\n<p>Mastering break and continue in C can optimize loops by prematurely exiting iterations or selectively skipping code blocks. This article will demonstrate how to harness the power of these statements for efficient loop programming.<\/p>\n<h2>Understanding the &#8220;break&#8221; Statement in C<\/h2>\n<p>The break statement in C allows immediate exiting of the current loop, transferring execution to the code following the loop. It essentially &#8220;breaks&#8221; out of the enclosing loop early.<\/p>\n<p><strong>Syntax :<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">break;<\/pre>\n<p><strong>Consider this for loop printing numbers:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\r\n\r\nint main() {\r\n\r\n  int i;\r\n  \r\n  for(i=1; i&lt;=5; i++) {\r\n    printf(\"%d \", i);\r\n    \r\n    if(i == 3) {\r\n      break;\r\n    }\r\n  }\r\n  \r\n  return 0;\r\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>1 2 3<\/p>\n<p>The break statement after printing 3 prevents completing the remaining iterations. The loop exits immediately after encountering a break.<\/p>\n<p><strong>Break statements commonly arise in menu loops:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">while (1) {\r\n  \/\/ display menu\r\n\r\n  \/\/ get choice\r\n  if (choice == QUIT) {\r\n     break;\r\n  }\r\n  \r\n  \/\/ process choice\r\n}<\/pre>\n<p>Here, the break exits the menu loop when the user selects the quit option.<\/p>\n<h3>How to Use Break to Exit Loops in C<\/h3>\n<p>The break statement allows immediately exiting the enclosing loop in C, transferring execution to the code following the loop construct.<\/p>\n<p><strong>To use the break to exit a loop prematurely:<\/strong><\/p>\n<ul>\n<li>Include the break statement within the loop block where you want to exit<\/li>\n<li>When the break is encountered, the loop terminates without completing the remaining iterations<\/li>\n<\/ul>\n<p><strong>For example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">for (int i = 0; i &lt; 10; i++) {\r\n\r\n  if (i == 5) {\r\n    break; \r\n  }\r\n  \r\n  printf(\"%d \", i);\r\n}<\/pre>\n<p>This loop prints values from 0 to 4. Once i becomes 5, break is triggered, which exits the loop early. The remaining iterations are not executed.<\/p>\n<p><strong>Break can exit nested loops by specifying the outer loop label:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">outer: for (int i = 0; i &lt; 3; i++) {\r\n\r\n  for (int j = 0; j &lt; 5; j++) {\r\n\r\n    if (j == 3) {\r\n      break outer;\r\n    }\r\n  } \r\n}<\/pre>\n<p>Here, break outer quits the outer loop instead of just the inner loop.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/c-programming-break-and-continue-system.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-120737 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/c-programming-break-and-continue-system.webp\" alt=\"c programming break and continue system\" width=\"600\" height=\"400\" \/><\/a><\/p>\n<h3>Mastering the &#8220;continue&#8221; Statement in C<\/h3>\n<p>The remaining code in the current iteration is skipped by the continue statement, which forces the execution of the following iteration right away. Any code that is added after continuing is ignored.<\/p>\n<p><strong>Syntax :<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">continue;<\/pre>\n<p><strong>This for loop uses continue to skip odd numbers:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\r\n\r\nint main() {\r\n\r\n  int i;\r\n\r\n  for(i=0; i&lt;10; i++) {\r\n\r\n    if(i % 2 != 0) {\r\n      continue;\r\n    }\r\n\r\n    printf(\"%d \", i);\r\n  }\r\n\r\n  return 0;\r\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>0 2 4 6 8<\/p>\n<h3>Continue could also filter data based on a condition:<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">while (has_data) {\r\n  \/\/ get next data item\r\n  \r\n  if (item.property == SKIP) {\r\n    continue;\r\n  }  \r\n\r\n  \/\/ process item\r\n}<\/pre>\n<h3>How to Use Continue to Skip Iterations in C<\/h3>\n<p>The continue statement in C skips the current iteration in a loop, proceeding directly to the next iteration in C.<\/p>\n<p><strong>To continue to selectively bypass iterations:<\/strong><\/p>\n<ul>\n<li>Place the continue statement inside the loop where you want to skip<\/li>\n<li>When continue executes, the rest of the code in that iteration is skipped<\/li>\n<li>Execution jumps to the loop&#8217;s update and condition check for the next cycle<\/li>\n<\/ul>\n<p><strong>For example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">for (int i = 0; i &lt; 10; i++) {\r\n\r\n  if (i == 3) {\r\n    continue;\r\n  }\r\n\r\n  printf(\"%d \", i); \r\n}<\/pre>\n<p>Here, when I become 3, I continue skipping printing 3 and move to the next iteration.<\/p>\n<p>Continuing only affects the current iteration. Any remaining iterations may still execute.<\/p>\n<p>Multiple continue statements can filter iterations based on different conditions.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/how-to-use-continue-to-skip-iterations-in-c.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-120788 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/how-to-use-continue-to-skip-iterations-in-c.webp\" alt=\"how to use continue to skip iterations in c\" width=\"600\" height=\"354\" \/><\/a><\/p>\n<h3>Combining &#8220;break&#8221; and &#8220;continue&#8221; in C<\/h3>\n<p>Break and continue can be combined for additional control over loop execution.<\/p>\n<p><strong>For example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\r\n\r\nint main() {\r\n\r\n  int i;\r\n\r\n  for(i=0; i&lt;10; i++) {\r\n\r\n    if(i == 5) {\r\n      break;\r\n    }\r\n    \r\n    if(i == 3) {\r\n      continue;\r\n    }\r\n    \r\n    printf(\"%d \", i); \r\n  }\r\n\r\n  return 0;\r\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>0 1 2 4<\/p>\n<p>Here, the break statement exits the loop when reaching exit_num while continuing to skip an iteration at skip_num.<\/p>\n<h3>Difference between Break and Continue in C<\/h3>\n<table>\n<tbody>\n<tr>\n<td><b>Feature<\/b><\/td>\n<td><b>Break Statement<\/b><\/td>\n<td><b>Continue Statement<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Purpose<\/span><\/td>\n<td><span style=\"font-weight: 400\">Exits loop execution<\/span><\/td>\n<td><span style=\"font-weight: 400\">Skips current iteration<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Usability<\/span><\/td>\n<td><span style=\"font-weight: 400\">Works with loops and switch<\/span><\/td>\n<td><span style=\"font-weight: 400\">Only works with loops<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Flow Control<\/span><\/td>\n<td><span style=\"font-weight: 400\">Transfers control outside of a loop<\/span><\/td>\n<td><span style=\"font-weight: 400\">Passes control to the next iteration<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Leftover Iterations<\/span><\/td>\n<td><span style=\"font-weight: 400\">The remaining iterations were not executed<\/span><\/td>\n<td><span style=\"font-weight: 400\">The remaining iterations may execute<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Syntax<\/span><\/td>\n<td><span style=\"font-weight: 400\">break;<\/span><\/td>\n<td><span style=\"font-weight: 400\">continue;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Switch Statement<\/span><\/td>\n<td><span style=\"font-weight: 400\">It can used with a switch<\/span><\/td>\n<td><span style=\"font-weight: 400\">It cannot be used with a switch<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Labels<\/span><\/td>\n<td><span style=\"font-weight: 400\">Can use labels for outer loop targeting<\/span><\/td>\n<td><span style=\"font-weight: 400\">Labels not applicable<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Best Practices<\/h3>\n<p><strong>Some tips for using break\/continue:<\/strong><\/p>\n<ul>\n<li>Don&#8217;t overuse them, as it can harm readability.<\/li>\n<li>Use comments to explain why they are needed.<\/li>\n<li>Test loops thoroughly after adding these statements.<\/li>\n<li>Ensure proper loop variable updates to avoid issues.<\/li>\n<\/ul>\n<p>By judiciously using break and continue, we can create optimized loop logic flows.<\/p>\n<h3>Conclusion<\/h3>\n<p>Break and continue are invaluable for controlling loop execution flow in C. Mastering their use allows skipping unnecessary iterations or prematurely exiting loops based on conditions. This unlocks more flexibility in loop programming. Remember to use them prudently and test loops thoroughly after incorporating these statements.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The idea of control flow is crucial to programming. It describes the non-linear progression of code execution across our programs based on the specified logic. In C, control statements like break and continue let&#46;&#46;&#46;<\/p>\n","protected":false},"author":581,"featured_media":120336,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19488],"tags":[28381,28378,28379,28380,23914],"class_list":["post-120334","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-programming","tag-break-and-continue","tag-break-and-continue-statement-in-c","tag-c-break-and-continue","tag-c-break-and-continue-statement","tag-c-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Break and Continue Statements in C - DataFlair<\/title>\n<meta name=\"description\" content=\"Mastering break and continue can optimize loops by prematurely exiting iterations or selectively skipping code blocks.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Break and Continue Statements in C - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Mastering break and continue can optimize loops by prematurely exiting iterations or selectively skipping code blocks.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-20T12:30:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-20T12:51:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/break-and-continue-in-c.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Break and Continue Statements in C - DataFlair","description":"Mastering break and continue can optimize loops by prematurely exiting iterations or selectively skipping code blocks.","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:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/","og_locale":"en_US","og_type":"article","og_title":"Break and Continue Statements in C - DataFlair","og_description":"Mastering break and continue can optimize loops by prematurely exiting iterations or selectively skipping code blocks.","og_url":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2023-11-20T12:30:11+00:00","article_modified_time":"2023-11-20T12:51:42+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/break-and-continue-in-c.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445"},"headline":"Break and Continue Statements in C","datePublished":"2023-11-20T12:30:11+00:00","dateModified":"2023-11-20T12:51:42+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/"},"wordCount":679,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/break-and-continue-in-c.webp","keywords":["break and continue","break and continue statement in c","c break and continue","c break and continue statement","c programming"],"articleSection":["C Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/","url":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/","name":"Break and Continue Statements in C - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/break-and-continue-in-c.webp","datePublished":"2023-11-20T12:30:11+00:00","dateModified":"2023-11-20T12:51:42+00:00","description":"Mastering break and continue can optimize loops by prematurely exiting iterations or selectively skipping code blocks.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/break-and-continue-in-c.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/break-and-continue-in-c.webp","width":1200,"height":628,"caption":"break and continue in c"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/break-and-continue-statements-in-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"C Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/c-programming\/"},{"@type":"ListItem","position":3,"name":"Break and Continue Statements in C"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam6\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/120334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=120334"}],"version-history":[{"count":6,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/120334\/revisions"}],"predecessor-version":[{"id":126569,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/120334\/revisions\/126569"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/120336"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=120334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=120334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=120334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}