{"id":23420,"date":"2015-07-23T00:11:40","date_gmt":"2015-07-22T18:41:40","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=23420"},"modified":"2015-07-23T10:45:04","modified_gmt":"2015-07-23T05:15:04","slug":"creating-android-application-with-groovy","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/","title":{"rendered":"Creating Android Application with Groovy"},"content":{"rendered":"<p>Groovy 2.4 was released in January 2015, with native support for <a title=\"Android Application Development Services\" href=\"http:\/\/www.tothenew.com\/mobile-android-application-development-services\">Android development<\/a>. It allows to write Android applications fully using Groovy.<\/p>\n<p><strong>Running Groovy on Android<\/strong><\/p>\n<p><strong>Step 1:<\/strong> Create a new Android project in Android Studio<\/p>\n<p><strong>Step 2:<\/strong> Open this <strong>build.gradle (Module: app)<\/strong> file:<br \/>\nInsert the following code before the first line:<\/p>\n<p>[java]buildscript {<br \/>\n        repositories {<br \/>\n            jcenter()<br \/>\n        }<br \/>\n        dependencies {<br \/>\n            classpath &#8216;com.android.tools.build:gradle:1.1.0&#8217;<br \/>\n            classpath &#8216;org.codehaus.groovy:gradle-groovy-android-plugin:0.3.6&#8217;<br \/>\n        }<br \/>\n    }[\/java]<\/p>\n<p>Insert the following code after the <strong>&#8220;apply plugin:&#8217;com.android.application'&#8221; <\/strong>line:<\/p>\n<p>[java]apply plugin: &#8216;groovyx.grooid.groovy-android'[\/java]<\/p>\n<p>Finally, near the end of the gradle script, insert a line in dependencies:<\/p>\n<p>[java]compile &#8216;org.codehaus.groovy:groovy:2.4.1:grooid'[\/java]<\/p>\n<p>After changing the gradle file, gradle needs to be &#8220;sync&#8221;ed.<\/p>\n<p><strong>Step 3:<\/strong> You will now create an additional &#8220;Java Folder&#8221; below <strong>main<\/strong>. Use New-&gt;Folder-&gt;Java Folder instead of New-&gt;Directory<br \/>\nThe name in the entry field is <strong>src\/main\/groovy<\/strong>.<br \/>\n<strong>Note:<\/strong> Groovy code files need to be placed in src\/main\/groovy instead of src\/main\/java. Adding Groovy files to src\/main\/java will not work!<\/p>\n<p><strong>Step 4:<\/strong> Create a new, <strong>MainActivity<\/strong>, with the context menu of the groovy folder, and enter the name of this class fully qualified with the package name.<\/p>\n<p><strong>Step 5:<\/strong> MainActivity class can be migrated from .java to .groovy by choosing <strong>Refactor-&gt;Rename File<\/strong> from the context menu. The file extension .java is simply replaced with a .groovy extension.<\/p>\n<p><strong>Step 6:<\/strong> Give the &#8220;Hello World&#8221; text view an id in the <strong>res\/layout\/activity_main.xml<\/strong> file, like this:<\/p>\n<p>[java]&lt;TextView<br \/>\nandroid:id=&quot;@+id\/textview_hello&quot;<br \/>\nandroid:layout_width=&quot;wrap_content&quot;<br \/>\nandroid:layout_height=&quot;wrap_content&quot;<br \/>\nandroid:text=&quot;@string\/hello_world&quot;\/&gt;<br \/>\n[\/java]<\/p>\n<p><strong>Step 7:<\/strong> In MainActivity.groovy, programmatically change the text shown by this view using groovy&#8217;s string interpolation:<\/p>\n<p>[java]public class MainActivity extends Activity {<\/p>\n<p>    @Override<br \/>\n    protected void onCreate(Bundle savedInstanceState) {<br \/>\n        super.onCreate(savedInstanceState);<br \/>\n        setContentView(R.layout.activity_main)<br \/>\n        int id = R.id.textview_hello<br \/>\n        findViewById(id).text = &quot;Hello Groovy&quot;<br \/>\n    }<br \/>\n}[\/java]<\/p>\n<p><strong>Step 8:<\/strong> Build and execute the application.<\/p>\n<p>It is very easy to run Groovy on Android. Because of Groovy&#8217;s interoperability with Java, it is also very easy to mix Groovy and Java in the same application.<\/p>\n<p><strong>Happy groovy&#8217;ing!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Groovy 2.4 was released in January 2015, with native support for Android development. It allows to write Android applications fully using Groovy. Running Groovy on Android Step 1: Create a new Android project in Android Studio Step 2: Open this build.gradle (Module: app) file: Insert the following code before the first line: [java]buildscript { repositories [&hellip;]<\/p>\n","protected":false},"author":167,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":58,"footnotes":""},"categories":[518,1772,1],"tags":[4845,1503,9],"class_list":["post-23420","post","type-post","status-publish","format-standard","hentry","category-android","category-mobility","category-technology","tag-android","tag-android-studio","tag-groovy"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Groovy 2.4 was released in January 2015, with native support for Android development. It allows to write Android applications fully using Groovy. Running Groovy on Android Step 1: Create a new Android project in Android Studio Step 2: Open this build.gradle (Module: app) file: Insert the following code before the first line: [java]buildscript { repositories\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Simranjit Kour\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-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=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Creating Android Application with Groovy | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Groovy 2.4 was released in January 2015, with native support for Android development. It allows to write Android applications fully using Groovy. Running Groovy on Android Step 1: Create a new Android project in Android Studio Step 2: Open this build.gradle (Module: app) file: Insert the following code before the first line: [java]buildscript { repositories\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/\" \/>\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 property=\"article:tag\" content=\"android\" \/>\n\t\t<meta property=\"article:tag\" content=\"mobility\" \/>\n\t\t<meta property=\"article:tag\" content=\"technology\" \/>\n\t\t<meta property=\"article:tag\" content=\"android studio\" \/>\n\t\t<meta property=\"article:tag\" content=\"groovy\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2015-07-22T18:41:40+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2015-07-23T05:15:04+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=\"Creating Android Application with Groovy | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Groovy 2.4 was released in January 2015, with native support for Android development. It allows to write Android applications fully using Groovy. Running Groovy on Android Step 1: Create a new Android project in Android Studio Step 2: Open this build.gradle (Module: app) file: Insert the following code before the first line: [java]buildscript { repositories\" \/>\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\\\/creating-android-application-with-groovy\\\/#article\",\"name\":\"Creating Android Application with Groovy | TO THE NEW Blog\",\"headline\":\"Creating Android Application with Groovy\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/simranjit-kaur\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2015-07-23T00:11:40+05:30\",\"dateModified\":\"2015-07-23T10:45:04+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-android-application-with-groovy\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-android-application-with-groovy\\\/#webpage\"},\"articleSection\":\"Android, Mobility, Technology, Android, android studio, Groovy\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-android-application-with-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\\\/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\\\/creating-android-application-with-groovy\\\/#listItem\",\"name\":\"Creating Android Application with Groovy\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-android-application-with-groovy\\\/#listItem\",\"position\":3,\"name\":\"Creating Android Application with Groovy\",\"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\\\/simranjit-kaur\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/simranjit-kaur\\\/\",\"name\":\"Simranjit Kour\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-android-application-with-groovy\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/a7102234-00e4-4dfb-8bc6-c51adf76700d_simranjit.kour@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Simranjit Kour\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-android-application-with-groovy\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-android-application-with-groovy\\\/\",\"name\":\"Creating Android Application with Groovy | TO THE NEW Blog\",\"description\":\"Groovy 2.4 was released in January 2015, with native support for Android development. It allows to write Android applications fully using Groovy. Running Groovy on Android Step 1: Create a new Android project in Android Studio Step 2: Open this build.gradle (Module: app) file: Insert the following code before the first line: [java]buildscript { repositories\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-android-application-with-groovy\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/simranjit-kaur\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/simranjit-kaur\\\/#author\"},\"datePublished\":\"2015-07-23T00:11:40+05:30\",\"dateModified\":\"2015-07-23T10:45:04+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":"Creating Android Application with Groovy | TO THE NEW Blog","description":"Groovy 2.4 was released in January 2015, with native support for Android development. It allows to write Android applications fully using Groovy. Running Groovy on Android Step 1: Create a new Android project in Android Studio Step 2: Open this build.gradle (Module: app) file: Insert the following code before the first line: [java]buildscript { repositories","canonical_url":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/#article","name":"Creating Android Application with Groovy | TO THE NEW Blog","headline":"Creating Android Application with Groovy","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/simranjit-kaur\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2015-07-23T00:11:40+05:30","dateModified":"2015-07-23T10:45:04+05:30","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/#webpage"},"articleSection":"Android, Mobility, Technology, Android, android studio, Groovy"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-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\/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\/creating-android-application-with-groovy\/#listItem","name":"Creating Android Application with Groovy"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/#listItem","position":3,"name":"Creating Android Application with Groovy","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\/simranjit-kaur\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/simranjit-kaur\/","name":"Simranjit Kour","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/a7102234-00e4-4dfb-8bc6-c51adf76700d_simranjit.kour@tothenew.com.jpg","width":96,"height":96,"caption":"Simranjit Kour"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/","name":"Creating Android Application with Groovy | TO THE NEW Blog","description":"Groovy 2.4 was released in January 2015, with native support for Android development. It allows to write Android applications fully using Groovy. Running Groovy on Android Step 1: Create a new Android project in Android Studio Step 2: Open this build.gradle (Module: app) file: Insert the following code before the first line: [java]buildscript { repositories","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/simranjit-kaur\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/simranjit-kaur\/#author"},"datePublished":"2015-07-23T00:11:40+05:30","dateModified":"2015-07-23T10:45:04+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":"article","og:title":"Creating Android Application with Groovy | TO THE NEW Blog","og:description":"Groovy 2.4 was released in January 2015, with native support for Android development. It allows to write Android applications fully using Groovy. Running Groovy on Android Step 1: Create a new Android project in Android Studio Step 2: Open this build.gradle (Module: app) file: Insert the following code before the first line: [java]buildscript { repositories","og:url":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/","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","article:tag":{"0":"android","1":"mobility","2":"technology","4":"android studio","5":"groovy"},"article:published_time":"2015-07-22T18:41:40+00:00","article:modified_time":"2015-07-23T05:15:04+00:00","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Creating Android Application with Groovy | TO THE NEW Blog","twitter:description":"Groovy 2.4 was released in January 2015, with native support for Android development. It allows to write Android applications fully using Groovy. Running Groovy on Android Step 1: Create a new Android project in Android Studio Step 2: Open this build.gradle (Module: app) file: Insert the following code before the first line: [java]buildscript { repositories","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"23420","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 20:02:35","updated":"2024-02-29 08:53:48","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\tCreating Android Application with Groovy\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":"Creating Android Application with Groovy","link":"https:\/\/www.tothenew.com\/blog\/creating-android-application-with-groovy\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/23420","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\/167"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=23420"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/23420\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=23420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=23420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=23420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}