{"id":8920,"date":"2012-09-26T23:58:05","date_gmt":"2012-09-26T18:28:05","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=8920"},"modified":"2012-09-27T00:15:26","modified_gmt":"2012-09-26T18:45:26","slug":"findresults-and-findresult-methods-of-groovy","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-groovy\/","title":{"rendered":"FindResults and FindResult Methods of Groovy"},"content":{"rendered":"<p>In almost all the applications that we work on, we have to transform elements of a collection in one way or the other. We can do it in different ways.<\/p>\n<p>Let there be a domain &#8220;Employee&#8221; with following attributes:<\/p>\n<p style=\"padding-bottom:5px\">\n<p>[java]<br \/>\nclass Employee{<br \/>\nString firstName<br \/>\nString lastName<br \/>\nDouble salary<br \/>\n}<br \/>\n[\/java]<\/p>\n<p style=\"padding-bottom:5px\">\n<p>And we have 5 Employees:<br \/>\n[java]<br \/>\nEmployee employee1 = new Employee(firstName:&quot;John&quot;, lastName:&quot;Doe&quot;, salary:10000)<br \/>\nEmployee employee2 = new Employee(firstName:&quot;Tim&quot;, lastName:&quot;Kerry&quot;, salary:20000)<br \/>\nEmployee employee3 = new Employee(firstName:&quot;Kim&quot;, lastName:&quot;Terry&quot;, salary:30000)<br \/>\nEmployee employee4 = new Employee(firstName:&quot;Mary&quot;, lastName:&quot;Jin&quot;, salary:40000)<br \/>\nEmployee employee5 = new Employee(firstName:&quot;James&quot;, lastName:&quot;Sally&quot;, salary:50000)<br \/>\n[\/java]<\/p>\n<p style=\"padding-bottom:5px\">\n<p>If we want full name of all the employees having salary greater than 25000.<br \/>\nIf we use collect in following way:<br \/>\n[java]<br \/>\nprintln Employee.list().collect{it.salary&gt;25000?(firstName+&#8217; &#8216;+lastName):null}<br \/>\n\/\/The gives [null,null,Kim Terry,Mary Jin,James Sally]<br \/>\n[\/java]<\/p>\n<p style=\"padding-bottom:5px\">\n<p>The problem with collect is that the size of transformed list is equal to the original list even if the transformed element is null. So we need to have an additional<br \/>\nstep to get non-null elements from the transformed list.<\/p>\n<p style=\"padding-bottom:5px\">\n<p>Instead of this, we can simply use findResults in following way:<br \/>\n[java]<br \/>\nprintln Employee.list().findResults{it.salary&gt;25000?(firstName+&#8217; &#8216;+lastName):null}<br \/>\n\/\/This gives a list of size equal to total non-null elements(3 in this case) : [Kim Terry,Mary Jin,James Sally].<br \/>\n[\/java]<\/p>\n<p style=\"padding-bottom:5px\">\n<p>Further if we want to get just the first non-null element after transformation, we can use findResult instead of findResults.<br \/>\n[java]<br \/>\nprintln Employee.list().findResult{it.salary&gt;25000?(firstName+&#8217; &#8216;+lastName):null}<br \/>\n\/\/This gives &quot;Kim Terry&quot;.<br \/>\n[\/java]<\/p>\n<p style=\"padding-bottom:5px\">\n<p style=\"padding-bottom:5px\">\n<p>I found it very useful.<\/p>\n<p>Hope it heps you too,:)<\/p>\n<p style=\"padding-bottom:5px\">\n<p>Vivek Sachdeva<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In almost all the applications that we work on, we have to transform elements of a collection in one way or the other. We can do it in different ways. Let there be a domain &#8220;Employee&#8221; with following attributes: [java] class Employee{ String firstName String lastName Double salary } [\/java] And we have 5 Employees: [&hellip;]<\/p>\n","protected":false},"author":48,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":98,"footnotes":""},"categories":[7],"tags":[1090,1091,9],"class_list":["post-8920","post","type-post","status-publish","format-standard","hentry","category-grails","tag-findresult","tag-findresults","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=\"In almost all the applications that we work on, we have to transform elements of a collection in one way or the other. We can do it in different ways. Let there be a domain &quot;Employee&quot; with following attributes: [java] class Employee{ String firstName String lastName Double salary } [\/java] And we have 5 Employees:\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Vivek Sachdeva\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-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=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"FindResults and FindResult Methods of Groovy | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In almost all the applications that we work on, we have to transform elements of a collection in one way or the other. We can do it in different ways. Let there be a domain &quot;Employee&quot; with following attributes: [java] class Employee{ String firstName String lastName Double salary } [\/java] And we have 5 Employees:\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-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 name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"FindResults and FindResult Methods of Groovy | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In almost all the applications that we work on, we have to transform elements of a collection in one way or the other. We can do it in different ways. Let there be a domain &quot;Employee&quot; with following attributes: [java] class Employee{ String firstName String lastName Double salary } [\/java] And we have 5 Employees:\" \/>\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\\\/findresults-and-findresult-methods-of-groovy\\\/#article\",\"name\":\"FindResults and FindResult Methods of Groovy | TO THE NEW Blog\",\"headline\":\"FindResults and FindResult Methods of Groovy\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vivek-sachdeva\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2012-09-26T23:58:05+05:30\",\"dateModified\":\"2012-09-27T00:15:26+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":3,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/findresults-and-findresult-methods-of-groovy\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/findresults-and-findresult-methods-of-groovy\\\/#webpage\"},\"articleSection\":\"Grails, findresult, findresults, Groovy\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/findresults-and-findresult-methods-of-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\\\/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\\\/findresults-and-findresult-methods-of-groovy\\\/#listItem\",\"name\":\"FindResults and FindResult Methods of Groovy\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/findresults-and-findresult-methods-of-groovy\\\/#listItem\",\"position\":3,\"name\":\"FindResults and FindResult Methods of Groovy\",\"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\\\/vivek-sachdeva\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vivek-sachdeva\\\/\",\"name\":\"Vivek Sachdeva\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/findresults-and-findresult-methods-of-groovy\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/e4057f7b-4721-48dd-a0f9-df1b70a274c4_vivek.sachdeva@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Vivek Sachdeva\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/findresults-and-findresult-methods-of-groovy\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/findresults-and-findresult-methods-of-groovy\\\/\",\"name\":\"FindResults and FindResult Methods of Groovy | TO THE NEW Blog\",\"description\":\"In almost all the applications that we work on, we have to transform elements of a collection in one way or the other. We can do it in different ways. Let there be a domain \\\"Employee\\\" with following attributes: [java] class Employee{ String firstName String lastName Double salary } [\\\/java] And we have 5 Employees:\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/findresults-and-findresult-methods-of-groovy\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vivek-sachdeva\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vivek-sachdeva\\\/#author\"},\"datePublished\":\"2012-09-26T23:58:05+05:30\",\"dateModified\":\"2012-09-27T00:15:26+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":"FindResults and FindResult Methods of Groovy | TO THE NEW Blog","description":"In almost all the applications that we work on, we have to transform elements of a collection in one way or the other. We can do it in different ways. Let there be a domain \"Employee\" with following attributes: [java] class Employee{ String firstName String lastName Double salary } [\/java] And we have 5 Employees:","canonical_url":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-groovy\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-groovy\/#article","name":"FindResults and FindResult Methods of Groovy | TO THE NEW Blog","headline":"FindResults and FindResult Methods of Groovy","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/vivek-sachdeva\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2012-09-26T23:58:05+05:30","dateModified":"2012-09-27T00:15:26+05:30","inLanguage":"en-US","commentCount":3,"mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-groovy\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-groovy\/#webpage"},"articleSection":"Grails, findresult, findresults, Groovy"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-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\/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\/findresults-and-findresult-methods-of-groovy\/#listItem","name":"FindResults and FindResult Methods of Groovy"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-groovy\/#listItem","position":3,"name":"FindResults and FindResult Methods of Groovy","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\/vivek-sachdeva\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/vivek-sachdeva\/","name":"Vivek Sachdeva","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-groovy\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/e4057f7b-4721-48dd-a0f9-df1b70a274c4_vivek.sachdeva@tothenew.com.jpg","width":96,"height":96,"caption":"Vivek Sachdeva"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-groovy\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-groovy\/","name":"FindResults and FindResult Methods of Groovy | TO THE NEW Blog","description":"In almost all the applications that we work on, we have to transform elements of a collection in one way or the other. We can do it in different ways. Let there be a domain \"Employee\" with following attributes: [java] class Employee{ String firstName String lastName Double salary } [\/java] And we have 5 Employees:","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-groovy\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/vivek-sachdeva\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/vivek-sachdeva\/#author"},"datePublished":"2012-09-26T23:58:05+05:30","dateModified":"2012-09-27T00:15:26+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":"FindResults and FindResult Methods of Groovy | TO THE NEW Blog","og:description":"In almost all the applications that we work on, we have to transform elements of a collection in one way or the other. We can do it in different ways. Let there be a domain &quot;Employee&quot; with following attributes: [java] class Employee{ String firstName String lastName Double salary } [\/java] And we have 5 Employees:","og:url":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-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","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"FindResults and FindResult Methods of Groovy | TO THE NEW Blog","twitter:description":"In almost all the applications that we work on, we have to transform elements of a collection in one way or the other. We can do it in different ways. Let there be a domain &quot;Employee&quot; with following attributes: [java] class Employee{ String firstName String lastName Double salary } [\/java] And we have 5 Employees:","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"8920","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-29 13:54:56","updated":"2024-02-29 08:57:15","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\tFindResults and FindResult Methods of Groovy\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":"FindResults and FindResult Methods of Groovy","link":"https:\/\/www.tothenew.com\/blog\/findresults-and-findresult-methods-of-groovy\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/8920","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\/48"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=8920"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/8920\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=8920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=8920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=8920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}