

{"id":11965,"date":"2018-03-28T05:08:37","date_gmt":"2018-03-28T05:08:37","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=11965"},"modified":"2021-12-04T10:16:41","modified_gmt":"2021-12-04T04:46:41","slug":"scala-break","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/scala-break\/","title":{"rendered":"Scala Break (Scala Loop Control Statement) &#8211; Breaking Nested Loop"},"content":{"rendered":"<p>So, we discussed three kinds of loops in Scala. In this Scala Break tutorial, we will discuss this syntax &amp; example of Scala Break statement. Moreover, we will learn how to break nested loop in Scala. Along with this, we will solve these queries: what about controlling these loops? What if we wanted to break out of one midway?<\/p>\n<p>So, let&#8217;s start the Scala Break Statements Tutorial.<\/p>\n<h3>What is Scala Loop Control Statement?<\/h3>\n<p>Scala loop control statement lets us exercise a little more control over a loop. It prevents normal execution.<\/p>\n<p>When we leave a scope, Scala destroys all automatic objects created in that scope. Actually, Scala did not support this functionality until version 2.8. Technically, there are no \u2018break\u2019 or \u2018continue\u2019 statements in Scala, unlike Java. But we must have something, right? Let\u2019s first look at what this means.<\/p>\n<h3>Scala Break<\/h3>\n<p>When we\u2019re inside a loop, and we encounter a break, the loop exhausts(terminates), and we skip to the first statement outside the loop.<\/p>\n<div id=\"attachment_11977\" style=\"width: 530px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/break.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11977\" class=\"wp-image-11977 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/break.png\" alt=\"Scala Break\" width=\"520\" height=\"341\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/break.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/break-150x98.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/break-300x197.png 300w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/a><p id=\"caption-attachment-11977\" class=\"wp-caption-text\">Break Statement in Scala<\/p><\/div>\n<h3>The Syntax of Scala Break<\/h3>\n<p>This is the syntax for Scala break statement:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">import scala.util.control._\r\nval loop=new Breaks;\r\nloop.breakable\r\n{\r\nfor(...)\r\n{\r\n             \/\/Code\r\n             loop.break;\r\n      }\r\n}<\/pre>\n<h3>Scala Break Example<\/h3>\n<p>So, what is all this about? let\u2019s take an example to clear the air.<\/p>\n<pre class=\"EnlighterJSRAW\">import scala.util.control._\r\nobject Main extends App\r\n{\r\n    val loop=new Breaks\r\n\u00a0\u00a0\u00a0\u00a0val nums=List(1,2,3,4,5)\r\n    var a=0\r\n    loop.breakable\r\n    {\r\n        for(a&lt;-nums)\r\n        {\r\n            println(a)\r\n            if(a==3)\r\n            {\r\n                loop.break\r\n            }\r\n        }\r\n    }\r\n}<\/pre>\n<p>The output is:<br \/>\n1<br \/>\n2<br \/>\n3<br \/>\nAny doubt yet in break statement in Scala? Please Comment<\/p>\n<h3>Breaking out of a Nested Loop in Scala<\/h3>\n<p>For this to work on nested loops, we do this:<\/p>\n<pre class=\"EnlighterJSRAW\">import scala.util.control._\r\nobject Main extends App\r\n{\r\n    val inner=new Breaks\r\n    val outer=new Breaks\r\n    val nums1=List(1,2,3,4)\r\n    val nums2=List(5,6,7,8)\r\n    var a=0\r\n    var b=0\r\n    outer.breakable\r\n    {\r\n        for(a&lt;-nums1)\r\n        {\r\n            println(a)\r\n            inner.breakable\r\n            {\r\n                for(b&lt;-nums2)\r\n                {\r\n                    println(b)\r\n                    if(b==7)\r\n                    {\r\n                       inner.break\r\n                    }\r\n                }\r\n            }\r\n            if(a==3)\r\n            {\r\n                outer.break\r\n            }\r\n        }\r\n    }\r\n}<\/pre>\n<p>And the output is:<br \/>\n1<br \/>\n5<br \/>\n6<br \/>\n7<br \/>\n2<br \/>\n5<br \/>\n6<br \/>\n7<br \/>\n3<br \/>\n5<br \/>\n6<br \/>\n7<\/p>\n<p>Whoa, that was confusing, what happened? Let\u2019s see this step by step.<\/p>\n<p>Initially, a and b are 0. The outer for-loop prints 1 from nums1. Then, the inner for-loop prints 5,6, and 7. It stops at 7 because of the break statement. Then, it checks if a==3. It isn\u2019t. So, it gets back to the outer for-loop.<\/p>\n<p>Now, a takes the value 2 from nums1. This goes on until a takes on the value 3. It prints 3, and then prints 5,6, and 7 from the inner for-loop. Now, it checks if a==3. This is true this time. So, it gets out of the outer loop. Hence, the output.<\/p>\n<h3>Conclusion<\/h3>\n<p>Not as convenient as Java, of course, but the \u2018break\u2019 in Scala still works. What\u2019s your excuse? Please share your reviews in the comment box.<\/p>\n<p><strong><a href=\"https:\/\/www.scala-lang.org\/\">Reference<\/a><\/strong><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1904,&quot;href&quot;:&quot;https:\\\/\\\/www.scala-lang.org&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251206135355\\\/https:\\\/\\\/www.scala-lang.org\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-10 07:41:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-15 07:30:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-18 15:55:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-23 02:56:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-27 16:24:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-02 02:40:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-05 13:44:47&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-09 08:06:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-12 14:24:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-17 17:26:33&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-20 17:57:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-24 15:52:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-30 14:21:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-02 14:58:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-05 16:39:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-12 17:17:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-16 04:52:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-19 13:39:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-24 17:10:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-28 04:44:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-03 07:25:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 21:46:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-12 18:02:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-27 20:15:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-05 11:05:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-10 19:22:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-14 07:59:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-17 16:14:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-21 23:18:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-26 09:13:01&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-29 14:23:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-07 12:16:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-13 10:20:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-18 15:54:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-22 05:55:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-25 08:30:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-29 13:12:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-02 14:06:47&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-09 18:23:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-15 16:29:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-19 06:54:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-22 13:14:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-26 04:09:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-29 09:04:33&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-29 09:04:33&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, we discussed three kinds of loops in Scala. In this Scala Break tutorial, we will discuss this syntax &amp; example of Scala Break statement. Moreover, we will learn how to break nested loop&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":31257,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[2175,8410,9038,12400,12403,12404],"class_list":["post-11965","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scala","tag-breaking-out-nested-loop","tag-loop-control-statement","tag-nested-loop-scala","tag-scala-berak","tag-scala-break-example","tag-scala-break-syntax"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Scala Break (Scala Loop Control Statement) - Breaking Nested Loop - DataFlair<\/title>\n<meta name=\"description\" content=\"Scala Break statement: Learn Control loop statement &#039;break&#039; in Scala with Scala break syntax and Example and also learn Breaking out of a Nested Loop\" \/>\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\/scala-break\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Scala Break (Scala Loop Control Statement) - Breaking Nested Loop - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Scala Break statement: Learn Control loop statement &#039;break&#039; in Scala with Scala break syntax and Example and also learn Breaking out of a Nested Loop\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/scala-break\/\" \/>\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=\"2018-03-28T05:08:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-04T04:46:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Loop-Control-Statement-break-01-1.jpg\" \/>\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\/jpeg\" \/>\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=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Scala Break (Scala Loop Control Statement) - Breaking Nested Loop - DataFlair","description":"Scala Break statement: Learn Control loop statement 'break' in Scala with Scala break syntax and Example and also learn Breaking out of a Nested Loop","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\/scala-break\/","og_locale":"en_US","og_type":"article","og_title":"Scala Break (Scala Loop Control Statement) - Breaking Nested Loop - DataFlair","og_description":"Scala Break statement: Learn Control loop statement 'break' in Scala with Scala break syntax and Example and also learn Breaking out of a Nested Loop","og_url":"https:\/\/data-flair.training\/blogs\/scala-break\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-03-28T05:08:37+00:00","article_modified_time":"2021-12-04T04:46:41+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Loop-Control-Statement-break-01-1.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/scala-break\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/scala-break\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Scala Break (Scala Loop Control Statement) &#8211; Breaking Nested Loop","datePublished":"2018-03-28T05:08:37+00:00","dateModified":"2021-12-04T04:46:41+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/scala-break\/"},"wordCount":384,"commentCount":3,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/scala-break\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Loop-Control-Statement-break-01-1.jpg","keywords":["breaking out nested loop","Loop Control statement","Nested loop scala","Scala Berak","Scala break example","scala break syntax"],"articleSection":["Scala Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/scala-break\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/scala-break\/","url":"https:\/\/data-flair.training\/blogs\/scala-break\/","name":"Scala Break (Scala Loop Control Statement) - Breaking Nested Loop - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/scala-break\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/scala-break\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Loop-Control-Statement-break-01-1.jpg","datePublished":"2018-03-28T05:08:37+00:00","dateModified":"2021-12-04T04:46:41+00:00","description":"Scala Break statement: Learn Control loop statement 'break' in Scala with Scala break syntax and Example and also learn Breaking out of a Nested Loop","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/scala-break\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/scala-break\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/scala-break\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Loop-Control-Statement-break-01-1.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Loop-Control-Statement-break-01-1.jpg","width":1200,"height":628,"caption":"Loop Control Statement - Scala Break"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/scala-break\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Scala Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/scala\/"},{"@type":"ListItem","position":3,"name":"Scala Break (Scala Loop Control Statement) &#8211; Breaking Nested Loop"}]},{"@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\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/11965","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=11965"}],"version-history":[{"count":8,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/11965\/revisions"}],"predecessor-version":[{"id":104817,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/11965\/revisions\/104817"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/31257"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=11965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=11965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=11965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}