{"id":4314,"date":"2018-04-18T10:22:10","date_gmt":"2018-04-18T04:52:10","guid":{"rendered":"https:\/\/www.innovationm.com\/blog\/?p=4314"},"modified":"2023-01-20T18:55:45","modified_gmt":"2023-01-20T13:25:45","slug":"working-with-csv-files-in-java-using-apache-commons-csv","status":"publish","type":"post","link":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/","title":{"rendered":"Working with CSV files in java using Apache Commons CSV"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><strong>Apache commons CSV<\/strong> library is a java library that can be used to read and write CSV files in a very simple and easy way. Another advantage is that this java library is open source and freely available to use.<\/p>\n<p><b>Add the library to your project as :<\/b><\/p>\n<p><b>Maven dependency :<\/b><\/p>\n<p><span style=\"font-weight: 400;\">You just need to add this dependency in your pom.xml file.<\/span><\/p>\n<pre class=\"lang:xhtml decode:true\">&lt;dependency&gt;\r\n   &lt;groupId&gt;org.apache.commons&lt;\/groupId&gt;\r\n   &lt;artifactId&gt;commons-csv&lt;\/artifactId&gt;\r\n   &lt;version&gt;1.5&lt;\/version&gt;\r\n&lt;\/dependency&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>or,\u00a0<b>Gradle Dependency :<\/b><\/p>\n<p><span style=\"font-weight: 400;\">You can just add this to your dependencies within build.gradle file. <\/span><\/p>\n<pre class=\"lang:default decode:true\">compile \"org.apache.commons:commons-csv:1.5\"\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Let us start by generating a simple CSV file &#8220;<strong>student.csv<\/strong>&#8221; in the following program.<\/span><\/p>\n<p><b>Program to generate a simple CSV file :<\/b><\/p>\n<pre class=\"lang:java decode:true\">import java.io.IOException;\r\nimport java.io.Writer;\r\nimport java.nio.file.Files;\r\nimport java.nio.file.Paths;\r\nimport java.util.Arrays;\r\n\r\nimport org.apache.commons.csv.CSVFormat;\r\nimport org.apache.commons.csv.CSVPrinter;\r\n\r\npublic class BasicCsvWriter {\r\n public static void main(String[] args) {\r\n  try {\r\n   \r\n   \/\/We have to create CSVPrinter class object \r\n   Writer writer = Files.newBufferedWriter(Paths.get(\"student.csv\"));\r\n   CSVPrinter csvPrinter = new CSVPrinter(writer, CSVFormat.DEFAULT.withHeader(\"Student Name\", \"Fees\"));\r\n   \r\n   \/\/Writing records in the generated CSV file\r\n   csvPrinter.printRecord(\"Akshay Sharma\", 1000);\r\n   csvPrinter.printRecord(\"Rahul Gupta\", 2000);\r\n   csvPrinter.printRecord(\"Jay Karn\", 3000);\r\n\r\n   \/\/writing record in the form of list\r\n   csvPrinter.printRecord(Arrays.asList(\"Dev Bhatia\", 4000));\r\n   \r\n   csvPrinter.flush();\r\n  } catch (IOException e) {\r\n   e.printStackTrace();\r\n  }\r\n }\r\n}\r\n<\/pre>\n<p>This program generates the &#8220;<strong>student.csv<\/strong>&#8221; file with the content as follows:<\/p>\n<pre class=\"lang:default decode:true\">Student Name, Fees\r\nAkshay Sharma,1000 \r\nRahul Gupta,2000\r\nJay Karn,3000\r\nDev Bhatia,4000\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Let us now read the content of the generated CSV file using the following program.<\/p>\n<p><b>Program to read the CSV <\/b><b>file : <\/b><\/p>\n<pre class=\"lang:java decode:true\">import java.io.BufferedReader;\r\nimport java.io.IOException;\r\nimport java.nio.file.Files;\r\nimport java.nio.file.Paths;\r\n\r\nimport org.apache.commons.csv.CSVFormat;\r\nimport org.apache.commons.csv.CSVParser;\r\nimport org.apache.commons.csv.CSVRecord;\r\n\r\npublic class BasicCsvReader {\r\n\r\n public static void main(String[] args) throws IOException {\r\n  BufferedReader reader = Files.newBufferedReader(Paths.get(\"student.csv\"));\r\n  CSVParser csvParser = new CSVParser(reader, CSVFormat.DEFAULT.withHeader(\"Student Name\", \"Fees\").withIgnoreHeaderCase().withTrim());\r\n\r\n  for (CSVRecord csvRecord: csvParser) {\r\n\r\n   \/\/ Accessing Values by Column Index\r\n   String name = csvRecord.get(0);\r\n\r\n   \/\/Accessing the values by column header name\r\n   String fees = csvRecord.get(\"fees\");\r\n\r\n   \/\/Printing the record \r\n   System.out.println(\"Record Number - \" + csvRecord.getRecordNumber());\r\n   System.out.println(\"Name : \" + name);\r\n   System.out.println(\"Fees : \" + fees);\r\n   System.out.println(\"\\n\\n\");\r\n  }\r\n }\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><b>The output will be generated on console as follows :<\/b><\/p>\n<pre class=\"lang:default decode:true\">Record Number - 1\r\nName : Akshay Sharma\r\nFees : 1000\r\n\r\nRecord Number - 2\r\nName : Rahul Gupta\r\nFees : 2000\r\n\r\nRecord Number - 3\r\nName : Jay Karn\r\nFees : 3000\r\n\r\nRecord Number - 4\r\nName : Dev Bhatia\r\nFees : 4000<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Apache commons CSV library is a java library that can be used to read and write CSV files in a very simple and easy way. Another advantage is that this java library is open source and freely available to use. Add the library to your project as : Maven dependency : You just need [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4353,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[250,252,249,251],"class_list":["post-4314","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mobile","tag-apache-commons-csv","tag-csv-generation-in-java","tag-java-library","tag-open-source-csv-library"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Working with CSV files in java using Apache Commons CSV - InnovationM - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Working with CSV files in java using Apache Commons CSV - InnovationM - Blog\" \/>\n<meta property=\"og:description\" content=\"&nbsp; Apache commons CSV library is a java library that can be used to read and write CSV files in a very simple and easy way. Another advantage is that this java library is open source and freely available to use. Add the library to your project as : Maven dependency : You just need [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/\" \/>\n<meta property=\"og:site_name\" content=\"InnovationM - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-18T04:52:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-20T13:25:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2018\/04\/Blog_Akshay2-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"539\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"InnovationM Admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InnovationM Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/\"},\"author\":{\"name\":\"InnovationM Admin\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\"},\"headline\":\"Working with CSV files in java using Apache Commons CSV\",\"datePublished\":\"2018-04-18T04:52:10+00:00\",\"dateModified\":\"2023-01-20T13:25:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/\"},\"wordCount\":156,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/Blog_Akshay2-2.png\",\"keywords\":[\"Apache commons-csv\",\"CSV generation in java\",\"Java Library\",\"Open source CSV library\"],\"articleSection\":[\"Mobile\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/\",\"name\":\"Working with CSV files in java using Apache Commons CSV - InnovationM - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/Blog_Akshay2-2.png\",\"datePublished\":\"2018-04-18T04:52:10+00:00\",\"dateModified\":\"2023-01-20T13:25:45+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/Blog_Akshay2-2.png\",\"contentUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/Blog_Akshay2-2.png\",\"width\":1100,\"height\":539},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/working-with-csv-files-in-java-using-apache-commons-csv\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Working with CSV files in java using Apache Commons CSV\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\",\"name\":\"InnovationM - Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\",\"name\":\"InnovationM Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"caption\":\"InnovationM Admin\"},\"sameAs\":[\"http:\\\/\\\/www.innovationm.com\\\/\"],\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/author\\\/innovationmadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Working with CSV files in java using Apache Commons CSV - InnovationM - Blog","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:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/","og_locale":"en_US","og_type":"article","og_title":"Working with CSV files in java using Apache Commons CSV - InnovationM - Blog","og_description":"&nbsp; Apache commons CSV library is a java library that can be used to read and write CSV files in a very simple and easy way. Another advantage is that this java library is open source and freely available to use. Add the library to your project as : Maven dependency : You just need [&hellip;]","og_url":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/","og_site_name":"InnovationM - Blog","article_published_time":"2018-04-18T04:52:10+00:00","article_modified_time":"2023-01-20T13:25:45+00:00","og_image":[{"width":1100,"height":539,"url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2018\/04\/Blog_Akshay2-2.png","type":"image\/png"}],"author":"InnovationM Admin","twitter_misc":{"Written by":"InnovationM Admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/#article","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/"},"author":{"name":"InnovationM Admin","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed"},"headline":"Working with CSV files in java using Apache Commons CSV","datePublished":"2018-04-18T04:52:10+00:00","dateModified":"2023-01-20T13:25:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/"},"wordCount":156,"commentCount":0,"image":{"@id":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2018\/04\/Blog_Akshay2-2.png","keywords":["Apache commons-csv","CSV generation in java","Java Library","Open source CSV library"],"articleSection":["Mobile"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/","url":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/","name":"Working with CSV files in java using Apache Commons CSV - InnovationM - Blog","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/#primaryimage"},"image":{"@id":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2018\/04\/Blog_Akshay2-2.png","datePublished":"2018-04-18T04:52:10+00:00","dateModified":"2023-01-20T13:25:45+00:00","author":{"@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed"},"breadcrumb":{"@id":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/#primaryimage","url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2018\/04\/Blog_Akshay2-2.png","contentUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2018\/04\/Blog_Akshay2-2.png","width":1100,"height":539},{"@type":"BreadcrumbList","@id":"https:\/\/www.innovationm.com\/blog\/working-with-csv-files-in-java-using-apache-commons-csv\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.innovationm.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Working with CSV files in java using Apache Commons CSV"}]},{"@type":"WebSite","@id":"https:\/\/www.innovationm.com\/blog\/#website","url":"https:\/\/www.innovationm.com\/blog\/","name":"InnovationM - Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.innovationm.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed","name":"InnovationM Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","caption":"InnovationM Admin"},"sameAs":["http:\/\/www.innovationm.com\/"],"url":"https:\/\/www.innovationm.com\/blog\/author\/innovationmadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/4314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/comments?post=4314"}],"version-history":[{"count":0,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/4314\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media\/4353"}],"wp:attachment":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media?parent=4314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/categories?post=4314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/tags?post=4314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}