{"id":23034,"date":"2015-07-15T16:28:57","date_gmt":"2015-07-15T10:58:57","guid":{"rendered":"https:\/\/2thenew.xyz\/blog\/?p=23034"},"modified":"2016-08-29T14:43:57","modified_gmt":"2016-08-29T09:13:57","slug":"groovy-collectentries-to-get-a-map-from-a-collection","status":"publish","type":"post","link":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/","title":{"rendered":"Groovy collectEntries to get a Map from a Collection"},"content":{"rendered":"<p>Dealing with collections is a part of a <a href=\"https:\/\/2thenew.xyz\/blog\/the-lifestyle-we-adhere-to-to-the-new\/\">Developer\u2019s daily life<\/a>. However, sometimes it becomes quite cumbersome when we have to iterate through each collection every time we want a manipulated Collection.<\/p>\n<p>Ever thought of a <a title=\"Groovy Development\" href=\"https:\/\/2thenew.xyz\/grails-application-development\">groovier way<\/a> to manipulate a collection and get a Map in a single line?<\/p>\n<p>Well, multiple iterations to convert a List to a Map can be saved with collectEntries.<br \/>\nGroovy collectEntries iterates over a collection and return a Map based on the manipulations.<\/p>\n<p>Let us consider a simple class:<\/p>\n<p>[java]<\/p>\n<p>class Person {<br \/>\nInteger salary<br \/>\nString emailId<br \/>\n}<\/p>\n<p>Person person1=new Person(salary:25000,emailId:&quot;anamika@gmail.com&quot;)<br \/>\nPerson person2=new Person(salary:23000,emailId:&quot;sanjana@gmail.com&quot;)<br \/>\nPerson person3=new Person(salary:26000,emailId:&quot;khalid@gmail.com&quot;)<br \/>\nPerson person4=new Person(salary:20000,emailId:&quot;anjali@gmail.com&quot;)<br \/>\nPerson person5=new Person(salary:22000,emailId:&quot;aditya@gmail.com&quot;)<br \/>\nList&lt;Person&gt; persons=[person1,person2,person3,person4,person5]<\/p>\n<p>[\/java]<\/p>\n<p>Given a list of Person Objects,to extract a map containing key as Person\u2019s emailId &amp; value as salary, we can use<\/p>\n<p>[java]<\/p>\n<p>Map&lt;String,Integer&gt; result = persons.collectEntries{<br \/>\n[it.emailId,it.salary]<br \/>\n}<\/p>\n<p>OR<\/p>\n<p>Map&lt;String,Integer&gt; result = persons.collectEntries{<br \/>\n[(it.emailId):it.salary]<br \/>\n}<\/p>\n<p>Output of result -&gt; [anamika@gmail.com:25000, sanjana@gmail.com:23000, khalid@gmail.com:26000, anjali@gmail.com:20000, aditya@gmail.com:22000]<\/p>\n<p>[\/java]<\/p>\n<p>CollectEntries works on any type of Collection-&gt; be it a Map, a list of Objects, Array etc.<\/p>\n<p>Hope it helps \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dealing with collections is a part of a Developer\u2019s daily life. However, sometimes it becomes quite cumbersome when we have to iterate through each collection every time we want a manipulated Collection. Ever thought of a groovier way to manipulate a collection and get a Map in a single line? Well, multiple iterations to convert [&hellip;]<\/p>\n","protected":false},"author":105,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":1121,"footnotes":""},"categories":[7,1],"tags":[1988,504,9,1987],"class_list":["post-23034","post","type-post","status-publish","format-standard","hentry","category-grails","category-technology","tag-collectentries","tag-collections","tag-groovy","tag-groovy-collectentries"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Dealing with collections is a part of a Developer\u2019s daily life. However, sometimes it becomes quite cumbersome when we have to iterate through each collection every time we want a manipulated Collection. Ever thought of a groovier way to manipulate a collection and get a Map in a single line? Well, multiple iterations to convert\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Manali Khanna\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/\" \/>\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=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Groovy collectEntries to get a Map from a Collection | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Dealing with collections is a part of a Developer\u2019s daily life. However, sometimes it becomes quite cumbersome when we have to iterate through each collection every time we want a manipulated Collection. Ever thought of a groovier way to manipulate a collection and get a Map in a single line? Well, multiple iterations to convert\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"article:tag\" content=\"grails\" \/>\n\t\t<meta property=\"article:tag\" content=\"technology\" \/>\n\t\t<meta property=\"article:tag\" content=\"collectentries\" \/>\n\t\t<meta property=\"article:tag\" content=\"collections\" \/>\n\t\t<meta property=\"article:tag\" content=\"groovy\" \/>\n\t\t<meta property=\"article:tag\" content=\"groovy collectentries\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2015-07-15T10:58:57+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2016-08-29T09:13:57+00:00\" \/>\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=\"Groovy collectEntries to get a Map from a Collection | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Dealing with collections is a part of a Developer\u2019s daily life. However, sometimes it becomes quite cumbersome when we have to iterate through each collection every time we want a manipulated Collection. Ever thought of a groovier way to manipulate a collection and get a Map in a single line? Well, multiple iterations to convert\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.xyz\/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\\\/groovy-collectentries-to-get-a-map-from-a-collection\\\/#article\",\"name\":\"Groovy collectEntries to get a Map from a Collection | TO THE NEW Blog\",\"headline\":\"Groovy collectEntries to get a Map from a Collection\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manali-khanna\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2015-07-15T16:28:57+05:30\",\"dateModified\":\"2016-08-29T14:43:57+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovy-collectentries-to-get-a-map-from-a-collection\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovy-collectentries-to-get-a-map-from-a-collection\\\/#webpage\"},\"articleSection\":\"Grails, Technology, collectEntries, collections, Groovy, Groovy collectEntries\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovy-collectentries-to-get-a-map-from-a-collection\\\/#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\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovy-collectentries-to-get-a-map-from-a-collection\\\/#listItem\",\"name\":\"Groovy collectEntries to get a Map from a Collection\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovy-collectentries-to-get-a-map-from-a-collection\\\/#listItem\",\"position\":3,\"name\":\"Groovy collectEntries to get a Map from a Collection\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@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\\\/manali-khanna\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manali-khanna\\\/\",\"name\":\"Manali Khanna\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovy-collectentries-to-get-a-map-from-a-collection\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/a3de5e65-67c4-4b99-9d37-172860cc234e_manali.khanna@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Manali Khanna\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovy-collectentries-to-get-a-map-from-a-collection\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovy-collectentries-to-get-a-map-from-a-collection\\\/\",\"name\":\"Groovy collectEntries to get a Map from a Collection | TO THE NEW Blog\",\"description\":\"Dealing with collections is a part of a Developer\\u2019s daily life. However, sometimes it becomes quite cumbersome when we have to iterate through each collection every time we want a manipulated Collection. Ever thought of a groovier way to manipulate a collection and get a Map in a single line? Well, multiple iterations to convert\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovy-collectentries-to-get-a-map-from-a-collection\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manali-khanna\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/manali-khanna\\\/#author\"},\"datePublished\":\"2015-07-15T16:28:57+05:30\",\"dateModified\":\"2016-08-29T14:43:57+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":"Groovy collectEntries to get a Map from a Collection | TO THE NEW Blog","description":"Dealing with collections is a part of a Developer\u2019s daily life. However, sometimes it becomes quite cumbersome when we have to iterate through each collection every time we want a manipulated Collection. Ever thought of a groovier way to manipulate a collection and get a Map in a single line? Well, multiple iterations to convert","canonical_url":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/#article","name":"Groovy collectEntries to get a Map from a Collection | TO THE NEW Blog","headline":"Groovy collectEntries to get a Map from a Collection","author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/manali-khanna\/#author"},"publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"},"datePublished":"2015-07-15T16:28:57+05:30","dateModified":"2016-08-29T14:43:57+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/#webpage"},"articleSection":"Grails, Technology, collectEntries, collections, Groovy, Groovy collectEntries"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.xyz\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/2thenew.xyz\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/#listItem","name":"Groovy collectEntries to get a Map from a Collection"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/#listItem","position":3,"name":"Groovy collectEntries to get a Map from a Collection","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.xyz\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.xyz\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.xyz\/blog\/author\/manali-khanna\/#author","url":"https:\/\/2thenew.xyz\/blog\/author\/manali-khanna\/","name":"Manali Khanna","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/a3de5e65-67c4-4b99-9d37-172860cc234e_manali.khanna@tothenew.com.jpg","width":96,"height":96,"caption":"Manali Khanna"}},{"@type":"WebPage","@id":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/#webpage","url":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/","name":"Groovy collectEntries to get a Map from a Collection | TO THE NEW Blog","description":"Dealing with collections is a part of a Developer\u2019s daily life. However, sometimes it becomes quite cumbersome when we have to iterate through each collection every time we want a manipulated Collection. Ever thought of a groovier way to manipulate a collection and get a Map in a single line? Well, multiple iterations to convert","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/manali-khanna\/#author"},"creator":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/manali-khanna\/#author"},"datePublished":"2015-07-15T16:28:57+05:30","dateModified":"2016-08-29T14:43:57+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.xyz\/blog\/#website","url":"https:\/\/2thenew.xyz\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"article","og:title":"Groovy collectEntries to get a Map from a Collection | TO THE NEW Blog","og:description":"Dealing with collections is a part of a Developer\u2019s daily life. However, sometimes it becomes quite cumbersome when we have to iterate through each collection every time we want a manipulated Collection. Ever thought of a groovier way to manipulate a collection and get a Map in a single line? Well, multiple iterations to convert","og:url":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/","og:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","article:tag":["grails","technology","collectentries","collections","groovy","groovy collectentries"],"article:published_time":"2015-07-15T10:58:57+00:00","article:modified_time":"2016-08-29T09:13:57+00:00","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Groovy collectEntries to get a Map from a Collection | TO THE NEW Blog","twitter:description":"Dealing with collections is a part of a Developer\u2019s daily life. However, sometimes it becomes quite cumbersome when we have to iterate through each collection every time we want a manipulated Collection. Ever thought of a groovier way to manipulate a collection and get a Map in a single line? Well, multiple iterations to convert","twitter:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"23034","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"article","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":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","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 12:02:26","updated":"2024-02-29 08:17:26","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.xyz\/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.xyz\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tGroovy collectEntries to get a Map from a Collection\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.xyz\/blog"},{"label":"Technology","link":"https:\/\/2thenew.xyz\/blog\/category\/technology\/"},{"label":"Groovy collectEntries to get a Map from a Collection","link":"https:\/\/2thenew.xyz\/blog\/groovy-collectentries-to-get-a-map-from-a-collection\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/23034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/users\/105"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/comments?post=23034"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/23034\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/media?parent=23034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/categories?post=23034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/tags?post=23034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}