{"id":6440,"date":"2012-08-27T12:52:50","date_gmt":"2012-08-27T07:22:50","guid":{"rendered":"https:\/\/2thenew.online\/blog\/?p=6440"},"modified":"2012-08-27T17:31:04","modified_gmt":"2012-08-27T12:01:04","slug":"try-catch-with-resources-in-jdk-7","status":"publish","type":"post","link":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/","title":{"rendered":"New Features in Try\/Catch &#8211; JDK 7"},"content":{"rendered":"<p>In our applications we generally make use of try-catch blocks to handle exceptions. Since JDK-7 , It has certain new features. These features are quite good , I must say.<\/p>\n<p style=\"padding-top: 10px;\">\n<p><strong>Some of the new changes in try\/catch bloack are :<\/strong><\/p>\n<p style=\"padding-top: 10px;\">\n<p>1.\u00a0 Multiple exceptions handling in only one catch block.<br \/>\n2.\u00a0 Finally out of scope. (Try-Catch with resources is new feature.)<\/p>\n<p style=\"padding-top: 10px;\">\n<p><strong>1. Catching Multiple Exception Types<\/strong><\/p>\n<p>In our applications , We generally make use of catch block like these :-<\/p>\n<p>[java]<br \/>\ncatch (SQLException ex) {<br \/>\n     logger.log(ex);<br \/>\n     throw ex;<br \/>\ncatch (IOException ex) {<br \/>\n     logger.log(ex);<br \/>\n     throw ex;<br \/>\n}<br \/>\n[\/java]<\/p>\n<p style=\"padding-top: 10px;\">\n<p>We can cleary see that we are maintaining duplicate code for handling exceptions . So , In Java SE 7 there are some modifications that resolves this issue.<\/p>\n<p style=\"padding-top: 10px;\">\n<p><strong>Have a look at following snippet of code :-<\/strong><\/p>\n<p style=\"padding-top: 10px;\">\n<p>[java]<br \/>\ncatch (IOException | SQLException ex) {<br \/>\n   logger.log(ex);<br \/>\n   throw ex;<br \/>\n}<br \/>\n[\/java]<\/p>\n<p style=\"padding-top: 10px;\">\n<p>Here above , We can see that a single catch block is handling multiple exceptions. Isn&#8217;t it cool. \ud83d\ude42<\/p>\n<p style=\"padding-top: 10px;\">\n<p>For more details , Please visit <a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/technotes\/guides\/language\/catch-multiple.html\">Oracle-docs for try-catch<\/a><\/p>\n<p style=\"padding-top: 10px;\">\n<p><strong>2. Finally out of scope. (Try-Catch with resources is new feature.)<\/strong><\/p>\n<p>We generally make use of finally block to close thre resources we used in our code.<br \/>\ne.g.<\/p>\n<p>[java]<br \/>\nString readLineFromBlock(String pathOfFile)<br \/>\n                                                     throws IOException {<br \/>\n    BufferedReader br = new BufferedReader(new FileReader(pathOfFile));<br \/>\n    try {<br \/>\n        return br.readLine();<br \/>\n    } finally {<br \/>\n        if (br != null) br.close();<br \/>\n    }<br \/>\n}<br \/>\n[\/java]<\/p>\n<p style=\"padding-top: 10px;\">\n<p>You can see that in above written snippet of code, We are closing the reader  and handling the exception for the same ,<strong> But In JDK7, <code>finally<\/code> is no longer required<\/strong>. Now in JDK-7 a new feature is added that is , Try-Catch with resources . This is a wonderful feature .<\/p>\n<p style=\"padding-top: 10px;\">\n<p><strong>Just have a look at the syntax :<\/strong><\/p>\n<p>[java]<br \/>\nString readLineFromBlock(String pathOfFile) throws IOException {<br \/>\n     try (BufferedReader br =new BufferedReader(new FileReader(pathOfFile))) {<br \/>\n         return br.readLine();<br \/>\n     }<br \/>\n}<br \/>\n[\/java]<\/p>\n<p style=\"padding-top: 10px;\">\n<p>You can see that in above written snippet of code, We are not closing the reader  and handling the exception for the same , It is being taken care of automatically by JDK-7.<\/p>\n<p style=\"padding-top: 10px;\">\n<p>Now closing the streams , readers n all will not be a headache for you , Need not to to write a extra snippet of code for them &amp; then enclosing them again in try-catch block.<\/p>\n<p style=\"padding-top: 10px;\">\n<p>For more details , Please visit <a href=\"http:\/\/docs.oracle.com\/javase\/tutorial\/essential\/exceptions\/tryResourceClose.html\">try-catch resource<\/a><\/p>\n<p style=\"padding-top: 10px;\">\n<p>These are really good features, Quite helpful . Just give a  try . \ud83d\ude42<\/p>\n<p style=\"padding-top: 10px;\">\n<p>Thanks &amp; Regards,<br \/>\nRobin Sharma,<\/p>\n<p>robin@intelligrape.com,<br \/>\nIntelligrape Software Services.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our applications we generally make use of try-catch blocks to handle exceptions. Since JDK-7 , It has certain new features. These features are quite good , I must say. Some of the new changes in try\/catch bloack are : 1.\u00a0 Multiple exceptions handling in only one catch block. 2.\u00a0 Finally out of scope. (Try-Catch [&hellip;]<\/p>\n","protected":false},"author":54,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":2,"footnotes":""},"categories":[7],"tags":[886,887],"class_list":["post-6440","post","type-post","status-publish","format-standard","hentry","category-grails","tag-exception-handling","tag-try-catch"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In our applications we generally make use of try-catch blocks to handle exceptions. Since JDK-7 , It has certain new features. These features are quite good , I must say. Some of the new changes in try\/catch bloack are : 1. Multiple exceptions handling in only one catch block. 2. Finally out of scope. (Try-Catch\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Robin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"New Features in Try\/Catch \u2013 JDK 7 | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In our applications we generally make use of try-catch blocks to handle exceptions. Since JDK-7 , It has certain new features. These features are quite good , I must say. Some of the new changes in try\/catch bloack are : 1. Multiple exceptions handling in only one catch block. 2. Finally out of scope. (Try-Catch\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"New Features in Try\/Catch \u2013 JDK 7 | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In our applications we generally make use of try-catch blocks to handle exceptions. Since JDK-7 , It has certain new features. These features are quite good , I must say. Some of the new changes in try\/catch bloack are : 1. Multiple exceptions handling in only one catch block. 2. Finally out of scope. (Try-Catch\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/try-catch-with-resources-in-jdk-7\\\/#article\",\"name\":\"New Features in Try\\\/Catch \\u2013 JDK 7 | TO THE NEW Blog\",\"headline\":\"New Features in Try\\\/Catch &#8211; JDK 7\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/robin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2012-08-27T12:52:50+05:30\",\"dateModified\":\"2012-08-27T17:31:04+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/try-catch-with-resources-in-jdk-7\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/try-catch-with-resources-in-jdk-7\\\/#webpage\"},\"articleSection\":\"Grails, Exception handling, Try catch\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/try-catch-with-resources-in-jdk-7\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"position\":2,\"name\":\"Grails\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/try-catch-with-resources-in-jdk-7\\\/#listItem\",\"name\":\"New Features in Try\\\/Catch &#8211; JDK 7\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/try-catch-with-resources-in-jdk-7\\\/#listItem\",\"position\":3,\"name\":\"New Features in Try\\\/Catch &#8211; JDK 7\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/robin\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/robin\\\/\",\"name\":\"Robin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/try-catch-with-resources-in-jdk-7\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ff8707e382fa577e18dee069d09ac7b138417c724320bae62e2e04d24e272a13?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Robin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/try-catch-with-resources-in-jdk-7\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/try-catch-with-resources-in-jdk-7\\\/\",\"name\":\"New Features in Try\\\/Catch \\u2013 JDK 7 | TO THE NEW Blog\",\"description\":\"In our applications we generally make use of try-catch blocks to handle exceptions. Since JDK-7 , It has certain new features. These features are quite good , I must say. Some of the new changes in try\\\/catch bloack are : 1. Multiple exceptions handling in only one catch block. 2. Finally out of scope. (Try-Catch\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/try-catch-with-resources-in-jdk-7\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/robin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/robin\\\/#author\"},\"datePublished\":\"2012-08-27T12:52:50+05:30\",\"dateModified\":\"2012-08-27T17:31:04+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"New Features in Try\/Catch \u2013 JDK 7 | TO THE NEW Blog","description":"In our applications we generally make use of try-catch blocks to handle exceptions. Since JDK-7 , It has certain new features. These features are quite good , I must say. Some of the new changes in try\/catch bloack are : 1. Multiple exceptions handling in only one catch block. 2. Finally out of scope. (Try-Catch","canonical_url":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/#article","name":"New Features in Try\/Catch \u2013 JDK 7 | TO THE NEW Blog","headline":"New Features in Try\/Catch &#8211; JDK 7","author":{"@id":"https:\/\/2thenew.online\/blog\/author\/robin\/#author"},"publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"},"datePublished":"2012-08-27T12:52:50+05:30","dateModified":"2012-08-27T17:31:04+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/#webpage"},"articleSection":"Grails, Exception handling, Try catch"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.online\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/grails\/#listItem","name":"Grails"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/grails\/#listItem","position":2,"name":"Grails","item":"https:\/\/2thenew.online\/blog\/category\/grails\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/#listItem","name":"New Features in Try\/Catch &#8211; JDK 7"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/#listItem","position":3,"name":"New Features in Try\/Catch &#8211; JDK 7","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/grails\/#listItem","name":"Grails"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.online\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.online\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.online\/blog\/author\/robin\/#author","url":"https:\/\/2thenew.online\/blog\/author\/robin\/","name":"Robin","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/ff8707e382fa577e18dee069d09ac7b138417c724320bae62e2e04d24e272a13?s=96&d=mm&r=g","width":96,"height":96,"caption":"Robin"}},{"@type":"WebPage","@id":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/#webpage","url":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/","name":"New Features in Try\/Catch \u2013 JDK 7 | TO THE NEW Blog","description":"In our applications we generally make use of try-catch blocks to handle exceptions. Since JDK-7 , It has certain new features. These features are quite good , I must say. Some of the new changes in try\/catch bloack are : 1. Multiple exceptions handling in only one catch block. 2. Finally out of scope. (Try-Catch","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.online\/blog\/author\/robin\/#author"},"creator":{"@id":"https:\/\/2thenew.online\/blog\/author\/robin\/#author"},"datePublished":"2012-08-27T12:52:50+05:30","dateModified":"2012-08-27T17:31:04+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.online\/blog\/#website","url":"https:\/\/2thenew.online\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"New Features in Try\/Catch \u2013 JDK 7 | TO THE NEW Blog","og:description":"In our applications we generally make use of try-catch blocks to handle exceptions. Since JDK-7 , It has certain new features. These features are quite good , I must say. Some of the new changes in try\/catch bloack are : 1. Multiple exceptions handling in only one catch block. 2. Finally out of scope. (Try-Catch","og:url":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/","og:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"New Features in Try\/Catch \u2013 JDK 7 | TO THE NEW Blog","twitter:description":"In our applications we generally make use of try-catch blocks to handle exceptions. Since JDK-7 , It has certain new features. These features are quite good , I must say. Some of the new changes in try\/catch bloack are : 1. Multiple exceptions handling in only one catch block. 2. Finally out of scope. (Try-Catch","twitter:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"6440","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 16:42:24","updated":"2024-02-29 09:27:25","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\/category\/grails\/\" title=\"Grails\">Grails<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tNew Features in Try\/Catch \u2013 JDK 7\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.online\/blog"},{"label":"Grails","link":"https:\/\/2thenew.online\/blog\/category\/grails\/"},{"label":"New Features in Try\/Catch &#8211; JDK 7","link":"https:\/\/2thenew.online\/blog\/try-catch-with-resources-in-jdk-7\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/6440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/users\/54"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/comments?post=6440"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/6440\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/media?parent=6440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/categories?post=6440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/tags?post=6440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}