{"id":1843,"date":"2010-10-14T15:25:23","date_gmt":"2010-10-14T09:55:23","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=1843"},"modified":"2010-10-14T15:25:23","modified_gmt":"2010-10-14T09:55:23","slug":"working-with-excel-import-plugin","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/","title":{"rendered":"Working with Excel Import Plugin"},"content":{"rendered":"<p>In a use case, I needed to import excel spreadsheet and save the data in the database, that was when I came across grails&#8217; <a href=\"http:\/\/www.grails.org\/plugin\/excel-import\">excel import plugin<\/a>. All I had to do was install the plugin and start using it. No Fuss. I created a class in my src\/groovy folder<br \/>\n[groovy]<br \/>\nimport org.grails.plugins.excelimport.*<br \/>\nclass StudentImportXLS extends AbstractExcelImporter {<\/p>\n<p> static Map CONFIG_BOOK_COLUMN_MAP = [sheet:&#8217;Sheet1&#8242;, startRow: 1, columnMap:[ &#8216;A&#8217; : &#8216;firstName&#8217;,&#8217;B&#8217;:&#8217;lastName&#8217;, &#8216;D&#8217;:&#8217;gender&#8217; , &#8216;E&#8217; :&#8217;birthday&#8217;, &#8216;F&#8217;: &#8216;inStudentDirectory&#8217;]]<\/p>\n<p>  static Map propertyConfigurationMap = [<br \/>\n          firstName:([expectedType: ExcelImportUtils.PROPERTY_TYPE_STRING, defaultValue:null]),<br \/>\n          lastName:([expectedType: ExcelImportUtils.PROPERTY_TYPE_STRING, defaultValue:0]),<br \/>\n          (&#8216;birthday&#8217;):([expectedType: ExcelImportUtils.PROPERTY_TYPE_STRING, defaultValue:null])]<\/p>\n<p>public StudentImportXLS(fileName){<br \/>\n  super(fileName)<br \/>\n}<\/p>\n<p>List&lt;Map&gt; getStudents(){<br \/>\n  List studentList = ExcelImportUtils.convertColumnMapConfigManyRows(workbook, CONFIG_BOOK_COLUMN_MAP, null, propertyConfigurationMap)<br \/>\n  return studentList<br \/>\n}<br \/>\n}<br \/>\n[\/groovy]<\/p>\n<p>In this class I am defining a Map  (CONFIG_BOOK_COLUMN_MAP) which tells you which column of excel file is mapped to which field. It also maps from which row to start extracting the data and which sheet Number.<\/p>\n<p>In the second Map (propertyConfigurationMap) we are providing what type of value we are expecting and a default value for it if the value is missing.<\/p>\n<p>Now what getStudents() method does is it gives a list of maps for the whole spreadsheet and it will return the data you wanted as a list of maps.<\/p>\n<p>All You need to do now is, in your service\/controller write<br \/>\n[groovy]<br \/>\nStudentImportXLS importer = new StudentImportXLS(fileName)<br \/>\ndef studentsMapList = importer.getStudents()<br \/>\n[\/groovy]<br \/>\nhere fileName is the path where you have saved the file on your server, and in studentsMapList you get the list of Maps. Now iterate over the list and use the maps to create and save objects. That is about it. \ud83d\ude42 . The Plug-in provides many more features which we can use.<\/p>\n<p>There was a small problem which I faced with the date, as you would have noticed I am trying to get value as a string for the birthday field (propertyConfigurationMap) getting a date was giving me joda time date. But it was not working properly  for some dates like 08\/15\/2010  (15th August 2010) I was getting a String value but for dates like 08\/05\/2010 (5th August 2010) it gave me an object of jodatime date. I found a work around for it<br \/>\n[groovy]<br \/>\n\/\/ student Map is one object from list of maps.<br \/>\n if (studentMap.birthday instanceof String) {<br \/>\n            student.birthday = new Date(studentMap.birthday)<br \/>\n          } else {<br \/>\n            String tempDate = studentMap.birthday.toString()<br \/>\n            SimpleDateFormat sdf = new SimpleDateFormat(&quot;yyyy-dd-MM&quot;);<br \/>\n            student.birthday = sdf.parse(tempDate)<br \/>\n          }<br \/>\n[\/groovy]  <\/p>\n<p>looking at the code it is clear that I am saving the date as java.util.Date not as jodatime date.<br \/>\nOther than this small issue it was great using this plugin and it saves a lot of effort.<br \/>\nHope it helps.<\/p>\n<p>With Regards<br \/>\nSachin Anand<br \/>\nsachin@intelligrape.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a use case, I needed to import excel spreadsheet and save the data in the database, that was when I came across grails&#8217; excel import plugin. All I had to do was install the plugin and start using it. No Fuss. I created a class in my src\/groovy folder [groovy] import org.grails.plugins.excelimport.* class StudentImportXLS [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":9,"footnotes":""},"categories":[7],"tags":[424,425],"class_list":["post-1843","post","type-post","status-publish","format-standard","hentry","category-grails","tag-excel-import-plugin","tag-import-excel"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In a use case, I needed to import excel spreadsheet and save the data in the database, that was when I came across grails&#039; excel import plugin. All I had to do was install the plugin and start using it. No Fuss. I created a class in my src\/groovy folder [groovy] import org.grails.plugins.excelimport.* class StudentImportXLS\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Sachin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/\" \/>\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=\"Working with Excel Import Plugin | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In a use case, I needed to import excel spreadsheet and save the data in the database, that was when I came across grails&#039; excel import plugin. All I had to do was install the plugin and start using it. No Fuss. I created a class in my src\/groovy folder [groovy] import org.grails.plugins.excelimport.* class StudentImportXLS\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/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=\"Working with Excel Import Plugin | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In a use case, I needed to import excel spreadsheet and save the data in the database, that was when I came across grails&#039; excel import plugin. All I had to do was install the plugin and start using it. No Fuss. I created a class in my src\/groovy folder [groovy] import org.grails.plugins.excelimport.* class StudentImportXLS\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/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\\\/working-with-excel-import-plugin\\\/#article\",\"name\":\"Working with Excel Import Plugin | TO THE NEW Blog\",\"headline\":\"Working with Excel Import Plugin\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sachin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2010-10-14T15:25:23+05:30\",\"dateModified\":\"2010-10-14T15:25:23+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/working-with-excel-import-plugin\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/working-with-excel-import-plugin\\\/#webpage\"},\"articleSection\":\"Grails, excel import plugin, import excel\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/working-with-excel-import-plugin\\\/#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\\\/working-with-excel-import-plugin\\\/#listItem\",\"name\":\"Working with Excel Import Plugin\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/working-with-excel-import-plugin\\\/#listItem\",\"position\":3,\"name\":\"Working with Excel Import Plugin\",\"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\\\/sachin\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sachin\\\/\",\"name\":\"Sachin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/working-with-excel-import-plugin\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d84b0b7a42bd13ad65b8a665e117addb0455be6b706c443a53526dc9d0e5af87?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Sachin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/working-with-excel-import-plugin\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/working-with-excel-import-plugin\\\/\",\"name\":\"Working with Excel Import Plugin | TO THE NEW Blog\",\"description\":\"In a use case, I needed to import excel spreadsheet and save the data in the database, that was when I came across grails' excel import plugin. All I had to do was install the plugin and start using it. No Fuss. I created a class in my src\\\/groovy folder [groovy] import org.grails.plugins.excelimport.* class StudentImportXLS\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/working-with-excel-import-plugin\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sachin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sachin\\\/#author\"},\"datePublished\":\"2010-10-14T15:25:23+05:30\",\"dateModified\":\"2010-10-14T15:25:23+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":"Working with Excel Import Plugin | TO THE NEW Blog","description":"In a use case, I needed to import excel spreadsheet and save the data in the database, that was when I came across grails' excel import plugin. All I had to do was install the plugin and start using it. No Fuss. I created a class in my src\/groovy folder [groovy] import org.grails.plugins.excelimport.* class StudentImportXLS","canonical_url":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/#article","name":"Working with Excel Import Plugin | TO THE NEW Blog","headline":"Working with Excel Import Plugin","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sachin\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2010-10-14T15:25:23+05:30","dateModified":"2010-10-14T15:25:23+05:30","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/#webpage"},"articleSection":"Grails, excel import plugin, import excel"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/#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\/working-with-excel-import-plugin\/#listItem","name":"Working with Excel Import Plugin"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/#listItem","position":3,"name":"Working with Excel Import Plugin","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\/sachin\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/sachin\/","name":"Sachin","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d84b0b7a42bd13ad65b8a665e117addb0455be6b706c443a53526dc9d0e5af87?s=96&d=mm&r=g","width":96,"height":96,"caption":"Sachin"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/","name":"Working with Excel Import Plugin | TO THE NEW Blog","description":"In a use case, I needed to import excel spreadsheet and save the data in the database, that was when I came across grails' excel import plugin. All I had to do was install the plugin and start using it. No Fuss. I created a class in my src\/groovy folder [groovy] import org.grails.plugins.excelimport.* class StudentImportXLS","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sachin\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sachin\/#author"},"datePublished":"2010-10-14T15:25:23+05:30","dateModified":"2010-10-14T15:25:23+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"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Working with Excel Import Plugin | TO THE NEW Blog","og:description":"In a use case, I needed to import excel spreadsheet and save the data in the database, that was when I came across grails' excel import plugin. All I had to do was install the plugin and start using it. No Fuss. I created a class in my src\/groovy folder [groovy] import org.grails.plugins.excelimport.* class StudentImportXLS","og:url":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Working with Excel Import Plugin | TO THE NEW Blog","twitter:description":"In a use case, I needed to import excel spreadsheet and save the data in the database, that was when I came across grails' excel import plugin. All I had to do was install the plugin and start using it. No Fuss. I created a class in my src\/groovy folder [groovy] import org.grails.plugins.excelimport.* class StudentImportXLS","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"1843","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-30 08:16:01","updated":"2024-02-29 11:00:21","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:\/\/www.tothenew.com\/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:\/\/www.tothenew.com\/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\tWorking with Excel Import Plugin\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Grails","link":"https:\/\/www.tothenew.com\/blog\/category\/grails\/"},{"label":"Working with Excel Import Plugin","link":"https:\/\/www.tothenew.com\/blog\/working-with-excel-import-plugin\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/1843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=1843"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/1843\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=1843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=1843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=1843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}