{"id":27,"date":"2009-03-02T18:09:39","date_gmt":"2009-03-02T12:39:39","guid":{"rendered":"https:\/\/2thenew.xyz\/blog\/?p=27"},"modified":"2016-12-19T15:19:21","modified_gmt":"2016-12-19T09:49:21","slug":"how-to-use-getjson-method-of-jquery-with-grails","status":"publish","type":"post","link":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/","title":{"rendered":"How to use $.getJSON() method of jQuery with grails?"},"content":{"rendered":"<p>How to use $.getJSON() method of jQuery with grails?<\/p>\n<p>Retriving a JSON string from Grails is very easy. You have to just write the following in your controller&#8217;s action<\/p>\n<p>Let me explain you with an example of populating a HTML table using JSON response:<br \/>\nIn this example, we have table with columns &#8211; name,address and gender. We want the table to be populated without doing a full page refresh, using an Ajax call.<\/p>\n<p>Domain Class:<\/p>\n<pre lang=\"groovy\">class MyDomain {\r\n    String name\r\n    String address\r\n    String gender\r\n}<\/pre>\n<p>Controller Class :<\/p>\n<pre lang=\"groovy\">\r\nclass MyController {\r\n   def someaction = {\r\n      List myDomains = MyDomain.findAllByGender(params.gender)\r\n      <em>\/*Let say 5 objects are retrieved*\/<\/em>\r\n      render myDomains as JSON\r\n   }\r\n}<\/pre>\n<p>The above code in action will render a<strong> JSON<\/strong> string in the following format:<\/p>\n<p><code>[<br \/>\n{<br \/>\n\"name\"\t\t: \"John\",<br \/>\n\"address\"\t: \"New York\",<br \/>\n\"gender\"\t: \"Male\"<br \/>\n},<br \/>\n{<br \/>\n\"name\"\t\t: \"Rob\",<br \/>\n\"address\"\t: \"Indonasia\",<br \/>\n\"gender\"\t: \"Male\"<br \/>\n},<br \/>\n{<br \/>\n\"name\"\t\t: \"Shayam\",<br \/>\n\"address\"\t: \"New Delhi\",<br \/>\n\"gender\"\t: \"Male\"<br \/>\n},<br \/>\n{<br \/>\n\"name\"\t\t: \"Chang\",<br \/>\n\"address\"\t: \"Thailand\",<br \/>\n\"gender\"\t: \"Male\"<br \/>\n},<br \/>\n{<br \/>\n\"name\"\t\t: \"Ali\",<br \/>\n\"address\"\t: \"London\",<br \/>\n\"gender\"\t: \"Male\"<br \/>\n}<br \/>\n]<\/code><\/p>\n<p>following script would be writtent on the client Side (in the GSP):<\/p>\n<pre lang=\"javascript\"><script>\r\n$.document.ready(function(){\r\n$('#someid').click(function(){\r\n<strong>$.getJSON<\/strong>(\"${createLink(controller:'my',action:'someaction')}\",{gender:'Male', ajax: 'true'}, function(myDomains){\r\nvar myHTMLString = ''\r\nfor(var i = 0 ; i < myDomains.length ; i++)\r\n{\r\nmyHTMLString = myHTMLString + '<tr><td>' + myDomains[i].name + '<\/td>'\r\nmyHTMLString = myHTMLString + '<tr><td>' + myDomains[i].address + '<\/td>'\r\nmyHTMLString = myHTMLString + '<tr><td>' + myDomains[i].gender + '<\/td><\/tr>'\r\n}\r\n$('table#mytable').html(myHTMLString)\r\n})\r\n})\r\n})\r\n<\/script><\/pre>\n<p>The HTML code would be like this :<\/p>\n<p>&lt;div id=&#8221;someid&#8221;&gt;<br \/>\nClick for JSON Response<br \/>\n&lt;\/div&gt;<br \/>\n&lt;table id=&#8221;mytable&#8221;&gt;<br \/>\n&lt;!&#8211;empty table &#8211;&gt;<br \/>\n&lt;\/table&gt;<\/p>\n<p>When you click on the displayed text the html page would become like following:<\/p>\n<p><code>&lt;div id=\"someid\"&gt;<br \/>\nClick for JSON Response<br \/>\n&lt;\/div&gt;<br \/>\n&lt;table id=\"mytable\"&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;John&lt;\/td&gt;<br \/>\n&lt;td&gt;New York&lt;\/td&gt;<br \/>\n&lt;td&gt;Male&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;Rob&lt;\/td&gt;<br \/>\n&lt;td&gt;Indonasia&lt;\/td&gt;<br \/>\n&lt;td&gt;Male&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;Shayam&lt;\/td&gt;<br \/>\n&lt;td&gt;New Delhi&lt;\/td&gt;<br \/>\n&lt;td&gt;Male&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;Chang&lt;\/td&gt;<br \/>\n&lt;td&gt;Thailand&lt;\/td&gt;<br \/>\n&lt;td&gt;Male&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;Ali&lt;\/td&gt;<br \/>\n&lt;td&gt;London&lt;\/td&gt;<br \/>\n&lt;td&gt;Male&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;\/table&gt;<\/code><\/p>\n<p>any kind of suggestions and comments are welcome&#8230;&#8230;<\/p>\n<p>Regards,<br \/>\nChandan Luthra<\/p>\n<p>https:\/\/2thenew.xyz<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to use $.getJSON() method of jQuery with grails? Retriving a JSON string from Grails is very easy. You have to just write the following in your controller&#8217;s action Let me explain you with an example of populating a HTML table using JSON response: In this example, we have table with columns &#8211; name,address and [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":3,"footnotes":""},"categories":[7],"tags":[4840,55,27,49],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-grails","tag-grails","tag-javascript","tag-jquery","tag-json"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"How to use $.getJSON() method of jQuery with grails? Retriving a JSON string from Grails is very easy. You have to just write the following in your controller&#039;s action Let me explain you with an example of populating a HTML table using JSON response: In this example, we have table with columns - name,address and\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Chandan Luthra\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/\" \/>\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=\"How to use $.getJSON() method of jQuery with grails? | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"How to use $.getJSON() method of jQuery with grails? Retriving a JSON string from Grails is very easy. You have to just write the following in your controller&#039;s action Let me explain you with an example of populating a HTML table using JSON response: In this example, we have table with columns - name,address and\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.xyz\/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=\"How to use $.getJSON() method of jQuery with grails? | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"How to use $.getJSON() method of jQuery with grails? Retriving a JSON string from Grails is very easy. You have to just write the following in your controller&#039;s action Let me explain you with an example of populating a HTML table using JSON response: In this example, we have table with columns - name,address and\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.xyz\/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\\\/how-to-use-getjson-method-of-jquery-with-grails\\\/#article\",\"name\":\"How to use $.getJSON() method of jQuery with grails? | TO THE NEW Blog\",\"headline\":\"How to use $.getJSON() method of jQuery with grails?\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/chandan\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2009-03-02T18:09:39+05:30\",\"dateModified\":\"2016-12-19T15:19:21+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-use-getjson-method-of-jquery-with-grails\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-use-getjson-method-of-jquery-with-grails\\\/#webpage\"},\"articleSection\":\"Grails, Grails, javascript, jquery, JSON\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-use-getjson-method-of-jquery-with-grails\\\/#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\\\/how-to-use-getjson-method-of-jquery-with-grails\\\/#listItem\",\"name\":\"How to use $.getJSON() method of jQuery with grails?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-use-getjson-method-of-jquery-with-grails\\\/#listItem\",\"position\":3,\"name\":\"How to use $.getJSON() method of jQuery with grails?\",\"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\\\/chandan\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/chandan\\\/\",\"name\":\"Chandan Luthra\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-use-getjson-method-of-jquery-with-grails\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e62b3dd092ee9e52b49e35ceeb46b8d79585bc9c90ef27e6d0acf86409a139a8?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Chandan Luthra\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-use-getjson-method-of-jquery-with-grails\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-use-getjson-method-of-jquery-with-grails\\\/\",\"name\":\"How to use $.getJSON() method of jQuery with grails? | TO THE NEW Blog\",\"description\":\"How to use $.getJSON() method of jQuery with grails? Retriving a JSON string from Grails is very easy. You have to just write the following in your controller's action Let me explain you with an example of populating a HTML table using JSON response: In this example, we have table with columns - name,address and\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-use-getjson-method-of-jquery-with-grails\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/chandan\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/chandan\\\/#author\"},\"datePublished\":\"2009-03-02T18:09:39+05:30\",\"dateModified\":\"2016-12-19T15:19:21+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":"How to use $.getJSON() method of jQuery with grails? | TO THE NEW Blog","description":"How to use $.getJSON() method of jQuery with grails? Retriving a JSON string from Grails is very easy. You have to just write the following in your controller's action Let me explain you with an example of populating a HTML table using JSON response: In this example, we have table with columns - name,address and","canonical_url":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/#article","name":"How to use $.getJSON() method of jQuery with grails? | TO THE NEW Blog","headline":"How to use $.getJSON() method of jQuery with grails?","author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/chandan\/#author"},"publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"},"datePublished":"2009-03-02T18:09:39+05:30","dateModified":"2016-12-19T15:19:21+05:30","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/#webpage"},"articleSection":"Grails, Grails, javascript, jquery, JSON"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.xyz\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/grails\/#listItem","name":"Grails"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/grails\/#listItem","position":2,"name":"Grails","item":"https:\/\/2thenew.xyz\/blog\/category\/grails\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/#listItem","name":"How to use $.getJSON() method of jQuery with grails?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/#listItem","position":3,"name":"How to use $.getJSON() method of jQuery with grails?","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/grails\/#listItem","name":"Grails"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.xyz\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.xyz\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.xyz\/blog\/author\/chandan\/#author","url":"https:\/\/2thenew.xyz\/blog\/author\/chandan\/","name":"Chandan Luthra","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/e62b3dd092ee9e52b49e35ceeb46b8d79585bc9c90ef27e6d0acf86409a139a8?s=96&d=mm&r=g","width":96,"height":96,"caption":"Chandan Luthra"}},{"@type":"WebPage","@id":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/#webpage","url":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/","name":"How to use $.getJSON() method of jQuery with grails? | TO THE NEW Blog","description":"How to use $.getJSON() method of jQuery with grails? Retriving a JSON string from Grails is very easy. You have to just write the following in your controller's action Let me explain you with an example of populating a HTML table using JSON response: In this example, we have table with columns - name,address and","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/chandan\/#author"},"creator":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/chandan\/#author"},"datePublished":"2009-03-02T18:09:39+05:30","dateModified":"2016-12-19T15:19:21+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.xyz\/blog\/#website","url":"https:\/\/2thenew.xyz\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"How to use $.getJSON() method of jQuery with grails? | TO THE NEW Blog","og:description":"How to use $.getJSON() method of jQuery with grails? Retriving a JSON string from Grails is very easy. You have to just write the following in your controller's action Let me explain you with an example of populating a HTML table using JSON response: In this example, we have table with columns - name,address and","og:url":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/","og:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"How to use $.getJSON() method of jQuery with grails? | TO THE NEW Blog","twitter:description":"How to use $.getJSON() method of jQuery with grails? Retriving a JSON string from Grails is very easy. You have to just write the following in your controller's action Let me explain you with an example of populating a HTML table using JSON response: In this example, we have table with columns - name,address and","twitter:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"27","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 04:47:38","updated":"2024-02-29 09:38:12","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.xyz\/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.xyz\/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\tHow to use $.getJSON() method of jQuery with grails?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.xyz\/blog"},{"label":"Grails","link":"https:\/\/2thenew.xyz\/blog\/category\/grails\/"},{"label":"How to use $.getJSON() method of jQuery with grails?","link":"https:\/\/2thenew.xyz\/blog\/how-to-use-getjson-method-of-jquery-with-grails\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}