{"id":6095,"date":"2012-08-10T17:42:38","date_gmt":"2012-08-10T12:12:38","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=6095"},"modified":"2016-11-29T17:30:35","modified_gmt":"2016-11-29T12:00:35","slug":"groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/","title":{"rendered":"Groovier way of sorting over multiple fields in a list of maps in groovy"},"content":{"rendered":"<p>Recently I was working on a <a title=\"Grails Development\" href=\"https:\/\/2thenew.today\/grails-application-development\" target=\"_blank\">Groovy and Grails Development<\/a> project and had a requirement to sort multiple fields in a list of maps.<\/p>\n<p>I needed to sort the below list of maps by firstName, then by lastName and then by ascending age. It means first, the firstNames will be compared. If they are same, lastNames will be compared and even if they are same, ages will be compared to decide order.<\/p>\n<p>[java]<br \/>\nList list = [<br \/>\n    [id:0, firstName: &#8216;Sachin&#8217;, lastName: &#8216;Tendulkar&#8217;, age: 40 ],<br \/>\n    [id:1, firstName: &#8216;Sachin&#8217;, lastName: &#8216;Tendulkar&#8217;, age: 103 ],<br \/>\n    [id:2, firstName: &#8216;Ajay&#8217;, lastName: &#8216;Tendulkar&#8217;, age: 48 ],<br \/>\n    [id:3, firstName: &#8216;Virendra&#8217;, lastName: &#8216;Sehwag&#8217;, age: 5 ],<br \/>\n    [id:4, firstName: &#8216;Virendra&#8217;, lastName: &#8216;Sehwag&#8217;, age: 50 ],<br \/>\n    [id:5, firstName: &#8216;Sachin&#8217;, lastName: &#8216;Nayyar&#8217;, age: 15 ]<br \/>\n]<br \/>\n[\/java]<\/p>\n<p>One way to achieve this is to use spaceship operator as follows :<\/p>\n<p>[java]<br \/>\nlist.sort { a,b -&gt;<br \/>\n   a.firstName &lt;=&gt; b.firstName ?: a.lastName &lt;=&gt; b.lastName ?: a.age &lt;=&gt; b.age<br \/>\n}*.id<br \/>\n[\/java]<\/p>\n<p>which gives the correct output as a list of id&#8217;s = [2, 5, 0, 1, 3, 4]<\/p>\n<p>One <a title=\"groovy developer\" href=\"https:\/\/2thenew.today\/grails-application-development\">cool groovier way<\/a> of achieving the same result is to concatenate firstName,lastName and age fields as a single string and then use the resulted string in sorting. However, there will be a problem with sorting age in this manner. Among two ages, 40 and 103, groovy will treat 103 as lower than 40, because sorting is done in ASCII\u00a0collating sequence and in that 1 of 103 comes before 4 of 40.<\/p>\n<p>One way to rectify this problem is to left-pad the age with sufficient number of 0&#8217;s before it is compared. Thus, 40 will become 040 and 103 will remain as it is and we will get the correct ordering. (Special thanks to my colleague\u00a0<a href=\"https:\/\/2thenew.today\/blog\/author\/bhagwat\/\">Bhagwat<\/a>\u00a0for helping me to arrive at this solution)<\/p>\n<p>[java]<br \/>\nString padAge(Integer age){<br \/>\n    return String.format(&quot;%03d&quot;,age)<br \/>\n}<br \/>\n[\/java]<\/p>\n<p>In format &#8220;%03d&#8221;, 0 specifies the filler digit and 3 specifies the maximum number of digits after padding. Thus, our final one-liner to perform sorting over multiple fields becomes :<\/p>\n<p>[java]<br \/>\nlist.sort{it.firstName+it.lastName+padAge(it.age)}*.id<br \/>\n[\/java]<\/p>\n<p>and output will be [2, 5, 0, 1, 3, 4]<\/p>\n<p>I\u00a0Hope it will be helpful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I was working on a Groovy and Grails Development project and had a requirement to sort multiple fields in a list of maps. I needed to sort the below list of maps by firstName, then by lastName and then by ascending age. It means first, the firstNames will be compared. If they are same, [&hellip;]<\/p>\n","protected":false},"author":46,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":295,"footnotes":""},"categories":[7],"tags":[859,858,505],"class_list":["post-6095","post","type-post","status-publish","format-standard","hentry","category-grails","tag-list-of-maps","tag-multiple-fields","tag-sorting"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In this blog, we will show you the right way to sort multiple fields in a list of maps in groovy.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"raj\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/\" \/>\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=\"Groovier way of sorting over multiple fields in a list of maps in groovy | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In this blog, we will show you the right way to sort multiple fields in a list of maps in groovy.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.today\/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=\"Groovier way of sorting over multiple fields in a list of maps in groovy | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In this blog, we will show you the right way to sort multiple fields in a list of maps in groovy.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.today\/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\\\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\\\/#article\",\"name\":\"Groovier way of sorting over multiple fields in a list of maps in groovy | TO THE NEW Blog\",\"headline\":\"Groovier way of sorting over multiple fields in a list of maps in groovy\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/raj\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2012-08-10T17:42:38+05:30\",\"dateModified\":\"2016-11-29T17:30:35+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":3,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\\\/#webpage\"},\"articleSection\":\"Grails, list-of-maps, multiple-fields, sorting\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\\\/#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\\\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\\\/#listItem\",\"name\":\"Groovier way of sorting over multiple fields in a list of maps in groovy\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\\\/#listItem\",\"position\":3,\"name\":\"Groovier way of sorting over multiple fields in a list of maps in groovy\",\"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\\\/raj\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/raj\\\/\",\"name\":\"raj\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a9d46e1b8343293e046cadae61788af301ac4dd357dd9b9da5ddb3e9e5000222?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"raj\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\\\/\",\"name\":\"Groovier way of sorting over multiple fields in a list of maps in groovy | TO THE NEW Blog\",\"description\":\"In this blog, we will show you the right way to sort multiple fields in a list of maps in groovy.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/raj\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/raj\\\/#author\"},\"datePublished\":\"2012-08-10T17:42:38+05:30\",\"dateModified\":\"2016-11-29T17:30:35+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":"Groovier way of sorting over multiple fields in a list of maps in groovy | TO THE NEW Blog","description":"In this blog, we will show you the right way to sort multiple fields in a list of maps in groovy.","canonical_url":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/#article","name":"Groovier way of sorting over multiple fields in a list of maps in groovy | TO THE NEW Blog","headline":"Groovier way of sorting over multiple fields in a list of maps in groovy","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/raj\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"datePublished":"2012-08-10T17:42:38+05:30","dateModified":"2016-11-29T17:30:35+05:30","inLanguage":"en-US","commentCount":3,"mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/#webpage"},"articleSection":"Grails, list-of-maps, multiple-fields, sorting"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.today\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/grails\/#listItem","name":"Grails"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/grails\/#listItem","position":2,"name":"Grails","item":"https:\/\/2thenew.today\/blog\/category\/grails\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/#listItem","name":"Groovier way of sorting over multiple fields in a list of maps in groovy"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/#listItem","position":3,"name":"Groovier way of sorting over multiple fields in a list of maps in groovy","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/grails\/#listItem","name":"Grails"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.today\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.today\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.today\/blog\/author\/raj\/#author","url":"https:\/\/2thenew.today\/blog\/author\/raj\/","name":"raj","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/a9d46e1b8343293e046cadae61788af301ac4dd357dd9b9da5ddb3e9e5000222?s=96&d=mm&r=g","width":96,"height":96,"caption":"raj"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/#webpage","url":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/","name":"Groovier way of sorting over multiple fields in a list of maps in groovy | TO THE NEW Blog","description":"In this blog, we will show you the right way to sort multiple fields in a list of maps in groovy.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/raj\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/raj\/#author"},"datePublished":"2012-08-10T17:42:38+05:30","dateModified":"2016-11-29T17:30:35+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.today\/blog\/#website","url":"https:\/\/2thenew.today\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Groovier way of sorting over multiple fields in a list of maps in groovy | TO THE NEW Blog","og:description":"In this blog, we will show you the right way to sort multiple fields in a list of maps in groovy.","og:url":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/","og:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Groovier way of sorting over multiple fields in a list of maps in groovy | TO THE NEW Blog","twitter:description":"In this blog, we will show you the right way to sort multiple fields in a list of maps in groovy.","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"6095","title":"Groovier way of sorting over multiple fields in a list of maps in groovy | #site_title","description":"In this blog, we will show you the right way to sort multiple fields in a list of maps in groovy.","keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","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 14:40:16","updated":"2024-02-29 09:21:52","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.today\/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.today\/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\tGroovier way of sorting over multiple fields in a list of maps in groovy\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"Grails","link":"https:\/\/2thenew.today\/blog\/category\/grails\/"},{"label":"Groovier way of sorting over multiple fields in a list of maps in groovy","link":"https:\/\/2thenew.today\/blog\/groovier-way-of-sorting-over-multiple-fields-in-a-list-of-maps-in-groovy\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/6095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/users\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=6095"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/6095\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=6095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=6095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=6095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}