{"id":7278,"date":"2022-06-07T12:03:19","date_gmt":"2022-06-07T06:33:19","guid":{"rendered":"https:\/\/www.innovationm.com\/blog\/?p=7278"},"modified":"2022-06-07T12:03:19","modified_gmt":"2022-06-07T06:33:19","slug":"sorting-of-complex-objects-in-java","status":"publish","type":"post","link":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/","title":{"rendered":"Sorting of complex objects in Java"},"content":{"rendered":"<p>The process of placing a list of items in a specified manner is known as Sorting. Some common criteria for sorting are alphabetical and numerical. It can be done in an ascending manner or in descending order. We all know that Collections.sort has the ability in sorting an arrayList for example, alphabetically if they are Strings.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-7281\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b1-1-300x206.png\" alt=\"\" width=\"386\" height=\"265\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b1-1-300x206.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b1-1-624x428.png 624w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b1-1.png 687w\" sizes=\"(max-width: 386px) 100vw, 386px\" \/><\/p>\n<p>But the question arises what happens when there are more complex data objects containing two or more variables including String?<\/p>\n<h1>How would one sort a list of objects that have more than one sortable element?<\/h1>\n<p><img decoding=\"async\" class=\"alignnone wp-image-7282\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b2-1-300x76.png\" alt=\"\" width=\"383\" height=\"97\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b2-1-300x76.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b2-1.png 562w\" sizes=\"(max-width: 383px) 100vw, 383px\" \/><\/p>\n<p>Let\u2019s take an example of a simple object which is the car. The above image represents the way a car is defined which includes its model, year, and color.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-7283\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b3-1-300x147.png\" alt=\"\" width=\"376\" height=\"184\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b3-1-300x147.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b3-1.png 403w\" sizes=\"(max-width: 376px) 100vw, 376px\" \/><\/p>\n<p>A simple framework is used that would include multiple sort options which are provided to the sorter for sorting the overall list.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7284\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b4-1-300x83.png\" alt=\"\" width=\"369\" height=\"102\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b4-1-300x83.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b4-1.png 623w\" sizes=\"(max-width: 369px) 100vw, 369px\" \/><\/p>\n<p>However, from the above example, it can be inferred that the solution is accurately expandable. In case, the car is supposed to receive a new field, for example, the current owner, the requirement for adding the field would require tracking the sorter class file leading to the implementation of the new sort option class. Finally, recompilation of the application for redistribution will take place making it exhaustible.<\/p>\n<p>Thus, for sorting complex objects the \u201cJDK8\u201d has completely transformed the way in comparing objects and sorting them in java. The new features in Java 8 including lambda expression and method reference have made it easier for implementing the \u201cComparator\u201d and \u201cComparable\u201d interfaces. It acts as a powerful method for day-to-day programming.<\/p>\n<h1>Comparable Interface for sorting complicated objects<\/h1>\n<p>Java \u201cComparable Interface\u201d is helpful for ordering the objects of the user-defined class. It is found in java.lang package and includes only one method identified as \u201ccompareTo(Object)\u201d. Thus, \u201cComparable Interface\u201d offers a single sorting sequence which implies that we can sort the elements based on a single data member.<\/p>\n<h2>compareTo(Object) method:<\/h2>\n<p>This method is used for comparing the current object with the stated object. For integer, it returns positive if the current object is \u201cgreater than\u201d the identified object else returns a negative integer. It also returns zero if the current object is equal to the stated object. The image below sorts the list elements based on the runs. If the runs are greater than Cricketer runs it will return a positive integer else a negative one.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7285\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b5-1-265x300.png\" alt=\"\" width=\"320\" height=\"362\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b5-1-265x300.png 265w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b5-1.png 437w\" sizes=\"(max-width: 320px) 100vw, 320px\" \/><\/p>\n<h1>Disadvantages of Comparable Interface<\/h1>\n<p>Although \u201cComparable Interface\u201d is a powerful method, however, it has some disadvantages which include:<\/p>\n<ol>\n<li>At any point in time sorting can be done based on only one parameter.<\/li>\n<li>Source class access should be given to outsiders.<\/li>\n<\/ol>\n<h1>Comparator Interface for sorting complex objects<\/h1>\n<p>Java \u201cComparator Interface\u201d is useful for sorting an array or list of objects which are based on \u201ccustom sort order\u201d. It imposes a \u201ctotal ordering\u201d on objects that might not have a fruitful natural ordering.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7286\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b6-1-285x300.png\" alt=\"\" width=\"328\" height=\"345\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b6-1-285x300.png 285w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b6-1-24x24.png 24w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/b6-1.png 452w\" sizes=\"(max-width: 328px) 100vw, 328px\" \/><\/p>\n<p>For example, for a List of cricketer objects, sorting the highest cricket scorer is based on the number of runs made by each cricketer. In such conditions, we use \u201cComparator Interface\u201d.<\/p>\n<h2>Circumstances of using \u201cComparator interface\u201d<\/h2>\n<p>l\u00a0 Sorting the array but not in \u201cnatural order\u201d.<\/p>\n<p>l\u00a0 Sorting an array or list of objects which does not involve modification of source code for implementing a \u201cComparable interface\u201d.<\/p>\n<p>l\u00a0 Utilising \u201cGroup by sort\u201d on an array or list of objects based on multiple fields.<\/p>\n<p>&nbsp;<\/p>\n<h1>Difference between comparable and comparator<\/h1>\n<table width=\"569\">\n<tbody>\n<tr>\n<td width=\"284\">It expects the body to compareTo methods.<\/p>\n<p>A compareTo method accepts a single parameter.<\/p>\n<p>It is present in java.lang package<\/p>\n<p>Using comparable interface sorting can happen based on a single parameter.<\/p>\n<p>Incomparable interface first object is referred to by this keyword.<\/p>\n<p>The Source class will be modified.<\/p>\n<p>Gets invoked automatically when Collections. sort(list) method is invoked.<\/td>\n<td width=\"285\">It expects the body for the comparison method.<\/p>\n<p>A comparison method accepts two parameters.<\/p>\n<p>It is present in java.util package.<\/p>\n<p>Here sorting can be performed based on multiple parameters.<\/p>\n<p>In comparator first object is not referred\u00a0 by this keyword.<\/p>\n<p>Source class will never be modified.<\/p>\n<p>Gets invoked automatically when Collections.sort(list,<\/p>\n<p>comparator) the method is invoked.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h1>Advantages of Comparator Interface<\/h1>\n<ul>\n<li>Utilizing a comparator we can sort objects based on more than one field of a class.<\/li>\n<li>For comparator, a class doesn\u2019t need to implement an interface for sorting on a collection of objects.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The process of placing a list of items in a specified manner is known as Sorting. Some common criteria for sorting are alphabetical and numerical. It can be done in an ascending manner or in descending order. We all know that Collections.sort has the ability in sorting an arrayList for example, alphabetically if they are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7287,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[256,360],"tags":[722,723,224,346],"class_list":["post-7278","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java-application","category-javascript","tag-blog","tag-blogging","tag-java","tag-javascript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Sorting of complex objects in Java - 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\/sorting-of-complex-objects-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sorting of complex objects in Java - InnovationM - Blog\" \/>\n<meta property=\"og:description\" content=\"The process of placing a list of items in a specified manner is known as Sorting. Some common criteria for sorting are alphabetical and numerical. It can be done in an ascending manner or in descending order. We all know that Collections.sort has the ability in sorting an arrayList for example, alphabetically if they are [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/\" \/>\n<meta property=\"og:site_name\" content=\"InnovationM - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-07T06:33:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/Sorting-Of-ComplexObjects-InJava.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1689\" \/>\n\t<meta property=\"og:image:height\" content=\"950\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/\"},\"author\":{\"name\":\"InnovationM Admin\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\"},\"headline\":\"Sorting of complex objects in Java\",\"datePublished\":\"2022-06-07T06:33:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/\"},\"wordCount\":728,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/Sorting-Of-ComplexObjects-InJava.png\",\"keywords\":[\"blog\",\"blogging\",\"java\",\"JavaScript\"],\"articleSection\":[\"Java Application\",\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/\",\"name\":\"Sorting of complex objects in Java - InnovationM - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/Sorting-Of-ComplexObjects-InJava.png\",\"datePublished\":\"2022-06-07T06:33:19+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/Sorting-Of-ComplexObjects-InJava.png\",\"contentUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/Sorting-Of-ComplexObjects-InJava.png\",\"width\":1689,\"height\":950},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/sorting-of-complex-objects-in-java\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sorting of complex objects in Java\"}]},{\"@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":"Sorting of complex objects in Java - 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\/sorting-of-complex-objects-in-java\/","og_locale":"en_US","og_type":"article","og_title":"Sorting of complex objects in Java - InnovationM - Blog","og_description":"The process of placing a list of items in a specified manner is known as Sorting. Some common criteria for sorting are alphabetical and numerical. It can be done in an ascending manner or in descending order. We all know that Collections.sort has the ability in sorting an arrayList for example, alphabetically if they are [&hellip;]","og_url":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/","og_site_name":"InnovationM - Blog","article_published_time":"2022-06-07T06:33:19+00:00","og_image":[{"width":1689,"height":950,"url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/Sorting-Of-ComplexObjects-InJava.png","type":"image\/png"}],"author":"InnovationM Admin","twitter_misc":{"Written by":"InnovationM Admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/#article","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/"},"author":{"name":"InnovationM Admin","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed"},"headline":"Sorting of complex objects in Java","datePublished":"2022-06-07T06:33:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/"},"wordCount":728,"commentCount":0,"image":{"@id":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/Sorting-Of-ComplexObjects-InJava.png","keywords":["blog","blogging","java","JavaScript"],"articleSection":["Java Application","JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/","url":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/","name":"Sorting of complex objects in Java - InnovationM - Blog","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/#primaryimage"},"image":{"@id":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/Sorting-Of-ComplexObjects-InJava.png","datePublished":"2022-06-07T06:33:19+00:00","author":{"@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed"},"breadcrumb":{"@id":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/#primaryimage","url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/Sorting-Of-ComplexObjects-InJava.png","contentUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2022\/06\/Sorting-Of-ComplexObjects-InJava.png","width":1689,"height":950},{"@type":"BreadcrumbList","@id":"https:\/\/www.innovationm.com\/blog\/sorting-of-complex-objects-in-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.innovationm.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Sorting of complex objects in Java"}]},{"@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\/7278","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=7278"}],"version-history":[{"count":0,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/7278\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media\/7287"}],"wp:attachment":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media?parent=7278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/categories?post=7278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/tags?post=7278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}