{"id":35616,"date":"2016-06-22T10:22:23","date_gmt":"2016-06-22T04:52:23","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=35616"},"modified":"2016-06-22T10:22:23","modified_gmt":"2016-06-22T04:52:23","slug":"stringjoiner-in-java-8","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/","title":{"rendered":"StringJoiner in Java 8"},"content":{"rendered":"<p>Being a programmer, at some point of time we encountered a situation in which you wanted to join (not concat) multiple strings of delimited items in Java. Worst can be if you are provided multiple string literals. Just think for a second and how will you build a string of delimited items using these literals. Eg.<\/p>\n<p>[java]<br \/>\nString str1 = &quot;java&quot;;<br \/>\nString str2 = &quot;scala&quot;;<br \/>\nString str3 = &quot;groovy&quot;;<\/p>\n<p>StringBuilder sb = new StringBuilder();<br \/>\nsb.append(str1).append(&quot;,&quot;).append(str2).append(&quot;,&quot;).append(str3);<br \/>\nsb.toString();<\/p>\n<p>[\/java]<\/p>\n<p>Or, many times we find ourselves in a situation where you want to pass a collection to IN clause of HQL or SQL. In this era of programming this is how we do this so obvious work<\/p>\n<p>[java]<br \/>\n\/\/ List&lt;String&gt; listOfNames = &#8230;.<br \/>\n StringBuilder sbObj = new StringBuilder();<br \/>\n for (String str : listOfNames) {<br \/>\n   if (sbObj.length() &gt; 0) {<br \/>\n      sbObj.append(&#8216;,&#8217;);<br \/>\n   }<br \/>\n   sbObj.append(str);<br \/>\n }<br \/>\n sbObj.toString();<\/p>\n<p>[\/java]<\/p>\n<p>Code reviewer will acquit you due to lack of good solutions evidence. But not anymore, In Java 8 we finally can join Strings with ease.<\/p>\n<p>StringJoiner\u00a0is a class added in Java 8. As the name suggests, we can use this class to join strings. There are two constructors, one taking the separator (delimiter) and one allowing a prefix and suffix.<\/p>\n<p><span style=\"color: #333333\">1.\u00a0<strong>StringJoiner(CharSequence delimiter)<\/strong><\/span><\/p>\n<p>[java]<br \/>\nStringJoiner joiner = new StringJoiner(&quot;,&quot;);<br \/>\njoiner.add(&quot;java&quot;);<br \/>\njoiner.add(&quot;scala&quot;);<br \/>\njoiner.add(&quot;groovy&quot;);<br \/>\nString desiredStr = joiner.toString(); \/\/ &quot;java,scala,groovy&quot;<\/p>\n<p>\/\/ add() calls can be chained<br \/>\n joined = new StringJoiner(&quot;-&quot;)<br \/>\n         .add(&quot;java&quot;)<br \/>\n         .add(&quot;scala&quot;)<br \/>\n         .add(&quot;groovy&quot;)<br \/>\n         .toString(); \/\/ &quot;java-scala-groovy&quot;<br \/>\n[\/java]<\/p>\n<p><span style=\"color: #333333\">2.<strong> StringJoiner(CharSequence delimiter, CharSequence prefix, CharSequence suffix)<\/strong><\/span><\/p>\n<p>The String like &#8220;[Richard:Gilfoyle:Erlich]&#8221; may be constructed as follows:<\/p>\n<p>[java]<br \/>\nStringJoiner sj = new StringJoiner(&quot;:&quot;, &quot;[&quot;, &quot;]&quot;);<br \/>\nsj.add(&quot;Richard&quot;).add(&quot;Gilfoyle&quot;).add(&quot;Erlich&quot;);<br \/>\nString desiredString = sj.toString();<br \/>\n[\/java]<\/p>\n<p>Moreover, StringJoiner is used as a behind scene tool by the two new static<strong><span style=\"color: #333333\"> join()\u00a0<\/span><\/strong>methods of <span style=\"color: #333333\"><strong>String class<\/strong><\/span>:<\/p>\n<p><span style=\"color: #333333\">\/\/ <strong>\u00a0join(CharSequence delimiter, CharSequence&#8230; elements)<\/strong><\/span><\/p>\n<p>[java]<br \/>\n String joined = String.join(&quot;\/&quot;, &quot;2016&quot;, &quot;06&quot;, &quot;15&quot; ); \/\/ &quot;2016\/06\/15&quot;<br \/>\n[\/java]<\/p>\n<p><span style=\"color: #333333\">\/\/<strong> join(CharSequence delimiter, Iterable&lt;? extends CharSequence&gt; elements)<\/strong><\/span><\/p>\n<p>[java]<br \/>\n List&lt;String&gt; list = Arrays.asList(&quot;java&quot;, &quot;scala&quot;, &quot;groovy&quot;);<br \/>\n joined = String.join(&quot;;&quot;, list); \/\/ &quot;java;scala;groovy&quot;<br \/>\n[\/java]<\/p>\n<p>A new joining Collector is also available for the new Stream API:<\/p>\n<p>[java]<br \/>\nList&lt;Employee&gt; list = Arrays.asList(<br \/>\n                        new Employee(&quot;Richard&quot;, &quot;Hendriks&quot;),<br \/>\n                        new Employee(&quot;Erlich&quot;, &quot;Bachmann&quot;),<br \/>\n                        new Employee(&quot;Jared&quot;, &quot;Dunn &quot;)<br \/>\n                      );<\/p>\n<p>String joinedFirstNames = list.stream()<br \/>\n                              .map(Employee::getFirstName)<br \/>\n                              .collect(Collectors.joining(&quot;,&quot;));<\/p>\n<p>\/\/ &quot;Richard, Erlich, Jared&quot;<\/p>\n<p>[\/java]<\/p>\n<p>Now, \u00a0join string smartly \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Being a programmer, at some point of time we encountered a situation in which you wanted to join (not concat) multiple strings of delimited items in Java. Worst can be if you are provided multiple string literals. Just think for a second and how will you build a string of delimited items using these literals. [&hellip;]<\/p>\n","protected":false},"author":820,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":10,"footnotes":""},"categories":[1],"tags":[4844,1513,3551],"class_list":["post-35616","post","type-post","status-publish","format-standard","hentry","category-technology","tag-java","tag-java8","tag-string"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Being a programmer, at some point of time we encountered a situation in which you wanted to join (not concat) multiple strings of delimited items in Java. Worst can be if you are provided multiple string literals. Just think for a second and how will you build a string of delimited items using these literals.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Nishant Lakra\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/\" \/>\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=\"StringJoiner in Java 8 | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Being a programmer, at some point of time we encountered a situation in which you wanted to join (not concat) multiple strings of delimited items in Java. Worst can be if you are provided multiple string literals. Just think for a second and how will you build a string of delimited items using these literals.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/\" \/>\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=\"StringJoiner in Java 8 | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Being a programmer, at some point of time we encountered a situation in which you wanted to join (not concat) multiple strings of delimited items in Java. Worst can be if you are provided multiple string literals. Just think for a second and how will you build a string of delimited items using these literals.\" \/>\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\\\/stringjoiner-in-java-8\\\/#article\",\"name\":\"StringJoiner in Java 8 | TO THE NEW Blog\",\"headline\":\"StringJoiner in Java 8\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/nishant-lakra\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2016-06-22T10:22:23+05:30\",\"dateModified\":\"2016-06-22T10:22:23+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/stringjoiner-in-java-8\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/stringjoiner-in-java-8\\\/#webpage\"},\"articleSection\":\"Technology, Java, java8, String\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/stringjoiner-in-java-8\\\/#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\\\/stringjoiner-in-java-8\\\/#listItem\",\"name\":\"StringJoiner in Java 8\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/stringjoiner-in-java-8\\\/#listItem\",\"position\":3,\"name\":\"StringJoiner in Java 8\",\"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\\\/nishant-lakra\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/nishant-lakra\\\/\",\"name\":\"Nishant Lakra\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/stringjoiner-in-java-8\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/cce3fae7-23cf-48fc-b130-c9f079e59383_nishant.lakra@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Nishant Lakra\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/stringjoiner-in-java-8\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/stringjoiner-in-java-8\\\/\",\"name\":\"StringJoiner in Java 8 | TO THE NEW Blog\",\"description\":\"Being a programmer, at some point of time we encountered a situation in which you wanted to join (not concat) multiple strings of delimited items in Java. Worst can be if you are provided multiple string literals. Just think for a second and how will you build a string of delimited items using these literals.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/stringjoiner-in-java-8\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/nishant-lakra\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/nishant-lakra\\\/#author\"},\"datePublished\":\"2016-06-22T10:22:23+05:30\",\"dateModified\":\"2016-06-22T10:22: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":"StringJoiner in Java 8 | TO THE NEW Blog","description":"Being a programmer, at some point of time we encountered a situation in which you wanted to join (not concat) multiple strings of delimited items in Java. Worst can be if you are provided multiple string literals. Just think for a second and how will you build a string of delimited items using these literals.","canonical_url":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/#article","name":"StringJoiner in Java 8 | TO THE NEW Blog","headline":"StringJoiner in Java 8","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/nishant-lakra\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2016-06-22T10:22:23+05:30","dateModified":"2016-06-22T10:22:23+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/#webpage"},"articleSection":"Technology, Java, java8, String"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/#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\/stringjoiner-in-java-8\/#listItem","name":"StringJoiner in Java 8"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/#listItem","position":3,"name":"StringJoiner in Java 8","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\/nishant-lakra\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/nishant-lakra\/","name":"Nishant Lakra","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/cce3fae7-23cf-48fc-b130-c9f079e59383_nishant.lakra@tothenew.com.jpg","width":96,"height":96,"caption":"Nishant Lakra"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/","name":"StringJoiner in Java 8 | TO THE NEW Blog","description":"Being a programmer, at some point of time we encountered a situation in which you wanted to join (not concat) multiple strings of delimited items in Java. Worst can be if you are provided multiple string literals. Just think for a second and how will you build a string of delimited items using these literals.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/nishant-lakra\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/nishant-lakra\/#author"},"datePublished":"2016-06-22T10:22:23+05:30","dateModified":"2016-06-22T10:22: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":"StringJoiner in Java 8 | TO THE NEW Blog","og:description":"Being a programmer, at some point of time we encountered a situation in which you wanted to join (not concat) multiple strings of delimited items in Java. Worst can be if you are provided multiple string literals. Just think for a second and how will you build a string of delimited items using these literals.","og:url":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/","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":"StringJoiner in Java 8 | TO THE NEW Blog","twitter:description":"Being a programmer, at some point of time we encountered a situation in which you wanted to join (not concat) multiple strings of delimited items in Java. Worst can be if you are provided multiple string literals. Just think for a second and how will you build a string of delimited items using these literals.","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"35616","title":null,"description":null,"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-30 05:38:19","updated":"2024-02-29 09:39:23","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\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tStringJoiner in Java 8\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Technology","link":"https:\/\/www.tothenew.com\/blog\/category\/technology\/"},{"label":"StringJoiner in Java 8","link":"https:\/\/www.tothenew.com\/blog\/stringjoiner-in-java-8\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/35616","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\/820"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=35616"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/35616\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=35616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=35616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=35616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}