{"id":1333,"date":"2022-08-18T16:00:15","date_gmt":"2023-03-13T19:11:29","guid":{"rendered":"https:\/\/www.silicloud.com\/blog\/uncategorized\/sort-the-java-collections-using-the-sort-method\/"},"modified":"2024-03-11T15:15:12","modified_gmt":"2024-03-11T15:15:12","slug":"sort-the-java-collections-using-the-sort-method","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/","title":{"rendered":"Sort the Java Collections using the sort() method."},"content":{"rendered":"<p>We will explore the Java Collections sort method today. In Java, when dealing with Collections, it is quite common to require data sorting.<\/p>\n<h2>Sort the <a href=\"https:\/\/docs.oracle.com\/javase\/8\/docs\/api\/java\/util\/Collections.html\">Java collections<\/a> using the sort() method.<\/h2>\n<p>The Java Collections class offers the Collections.sort() method, making it easy to sort all List implementations such as LinkedList and ArrayList. This method has two overloaded versions available.<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>sort(List list): Orders the elements of the List in an ascending manner based on their inherent ordering.<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>sort(List list, Comparator c): Orders the elements of the list according to the sequence determined by the comparator.<\/ol>\n<p>Please be aware that the previously mentioned methods have generics in their signature, but I have excluded them here for the sake of clarity. Let&#8217;s now explore separately how and under what circumstances we can utilize these two methods.<\/p>\n<h3>Sort the list using Java Collections.<\/h3>\n<p>Think about an ArrayList that contains strings.<\/p>\n<pre class=\"post-pre\"><code>List&lt;String&gt; fruits = new ArrayList&lt;String&gt;();\r\nfruits.add(\"Apple\");\r\nfruits.add(\"Orange\");\r\nfruits.add(\"Banana\");\r\nfruits.add(\"Grape\");\r\n<\/code><\/pre>\n<p>Next, we will arrange it using Collections.sort().<\/p>\n<pre class=\"post-pre\"><code>Collections.sort(fruits);\r\n\/\/ Print the sorted list\r\nSystem.out.println(fruits);\r\n<\/code><\/pre>\n<p>The program will produce the following result.<\/p>\n<pre class=\"post-pre\"><code>[Apple, Banana, Grape, Orange]\r\n<\/code><\/pre>\n<p>Therefore, it is evident that the list of Strings has been sorted in lexical order by Collections.sort(). This method does not produce any output. Now, let&#8217;s contemplate a scenario where we have a list of custom objects such as Fruit.<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.collections;\r\npublic class Fruit{\r\n    private int id;\r\n    private String name;\r\n    private String taste;\r\n\r\n    Fruit(int id, String name, String taste){\r\n        this.id=id;\r\n        this.name=name;\r\n        this.taste=taste;\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>Shall we compile a roster of different types of fruits?<\/p>\n<pre class=\"post-pre\"><code>List&lt;Fruit&gt; fruitList=new ArrayList&lt;Fruit&gt;();\r\nFruit apple=new Fruit(1, \"Apple\", \"Sweet\");\r\nFruit orange=new Fruit(2, \"Orange\", \"Sour\");\r\nFruit banana=new Fruit(4, \"Banana\", \"Sweet\");\r\nFruit grape=new Fruit(3, \"Grape\", \"Sweet and Sour\");\r\n\r\nfruitList.add(apple);\r\nfruitList.add(orange);\r\nfruitList.add(banana);\r\nfruitList.add(grape);\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655dc28fcdcf9b67579ff062\/16-0.png\" alt=\"java collections sort, Java Collections.sort() method\" \/><\/div>\n<pre class=\"post-pre\"><code>package com.scdev.collections;\r\npublic class Fruit implements Comparable&lt;Object&gt;{\r\n    private int id;\r\n    private String name;\r\n    private String taste;\r\n\r\n    Fruit(int id, String name, String taste){\r\n        this.id=id;\r\n        this.name=name;\r\n        this.taste=taste;\r\n    }\r\n    @Override \r\n    public int compareTo(Object o) {\r\n        Fruit f = (Fruit) o; \r\n        return this.id - f.id ;\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>Since Comparable has been implemented, the list can now be sorted without encountering any errors.<\/p>\n<pre class=\"post-pre\"><code>Collections.sort(fruitList);\r\nfruitList.forEach(fruit -&gt; {\r\n    System.out.println(fruit.getId() + \" \" + fruit.getName() + \" \" + \r\n      fruit.getTaste());\r\n});\r\n<\/code><\/pre>\n<p>The result will appear in the following manner:<\/p>\n<pre class=\"post-pre\"><code>1 Apple Sweet\r\n2 Orange Sour\r\n3 Grape Sweet and Sour\r\n4 Banana Sweet\r\n<\/code><\/pre>\n<h3>Sort a List in Java using the Collections class and a custom Comparator.<\/h3>\n<p>To establish a customized sorting method that deviates from the default ordering of the elements, we can employ the java.util.Comparator interface and submit an instance of it as the second parameter of the sort() function. Suppose we want to organize the elements based on the &#8220;name&#8221; attribute of the Fruit. We implement the Comparator and within its compare() function, we define the comparison algorithm.<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.collections;\r\n\r\nclass SortByName implements Comparator&lt;Fruit&gt; {\r\n    @Override\r\n    public int compare(Fruit a, Fruit b) {\r\n        return a.getName().compareTo(b.getName());\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>We can now arrange it by employing this comparator.<\/p>\n<pre class=\"post-pre\"><code>Collections.sort(fruitList, new SortByName());\r\n<\/code><\/pre>\n<p>Here is how the output will appear:<\/p>\n<pre class=\"post-pre\"><code>1 Apple Sweet\r\n4 Banana Sweet\r\n3 Grape Sweet and Sour\r\n2 Orange Sour\r\n<\/code><\/pre>\n<p>We can provide sorting logic at runtime using lambda functions, eliminating the need to write a new class for the Comparator.<\/p>\n<pre class=\"post-pre\"><code>Collections.sort(fruitList, (a, b) -&gt; {\r\n    return a.getName().compareTo(b.getName());\r\n});\r\n<\/code><\/pre>\n<h3>Reverse order is a feature in Java Collections.<\/h3>\n<p>By default, when using Collection.sort, the elements are sorted in ascending order. However, if we want to sort the elements in the opposite direction, there are several methods we can utilize.<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>reverseOrder(): This method returns a Comparator that applies the opposite ordering of the elements&#8217; natural order in the collection.<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>reverseOrder(Comparator cmp): This method returns a Comparator that applies the reverse ordering based on the provided comparator.<\/ol>\n<p>Here are the samples for both of these approaches:<\/p>\n<h3>Example of using the reverseOrder() method in Java Collections.<\/h3>\n<pre class=\"post-pre\"><code>Collections.sort(fruits, Collections.reverseOrder());\r\nSystem.out.println(fruits);\r\n<\/code><\/pre>\n<p>The fruits will be displayed in reverse alphabetical order.<\/p>\n<pre class=\"post-pre\"><code>[Orange, Grape, Banana, Apple]\r\n<\/code><\/pre>\n<h3>One possible paraphrase could be: &#8220;An example of using the Java Collections reverseOrder method with a specified Comparator.&#8221;<\/h3>\n<pre class=\"post-pre\"><code>Collections.sort(fruitList, Collections.reverseOrder(new SortByName()));\r\nfruitList.forEach(fruit -&gt; {\r\n    System.out.println(fruit.getId() + \" \" + fruit.getName() + \" \" + \r\n      fruit.getTaste());\r\n});\r\n<\/code><\/pre>\n<p>Can you provide only one option for paraphrasing the following sentence natively?<br \/>\n&#8220;Output:&#8221;<\/p>\n<pre class=\"post-pre\"><code>2 Orange Sour\r\n3 Grape Sweet and Sour\r\n4 Banana Sweet\r\n1 Apple Sweet\r\n<\/code><\/pre>\n<p>There are no more details to cover regarding the sort() method in Java Collections, along with its examples. Reference: API Documentation.<\/p>\n<p>more tutorials<\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/convert-a-string-to-an-xml-document-in-java-and-convert-an-xml-document-to-a-string\/\" target=\"_blank\" rel=\"noopener\">Convert string to XML document in Java<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/how-to-include-items-to-a-list-in-python\/\" target=\"_blank\" rel=\"noopener\">How to include items to a list in Python<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/java-string-substring-method\/\" target=\"_blank\" rel=\"noopener\">Java String substring() method<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/adding-a-string-to-a-python-variable\/\" target=\"_blank\" rel=\"noopener\">Adding a string to a Python variable<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/expect-the-easymock-void-method-to-have-its-last-call\/\" target=\"_blank\" rel=\"noopener\">EasyMock void method to have its last call.<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We will explore the Java Collections sort method today. In Java, when dealing with Collections, it is quite common to require data sorting. Sort the Java collections using the sort() method. The Java Collections class offers the Collections.sort() method, making it easy to sort all List implementations such as LinkedList and ArrayList. This method has [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1333","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Sort the Java Collections using the sort() method. - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"We will explore the Java Collections sort method today. In Java, when dealing with Collections, it is quite common to require data sorting.\" \/>\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.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sort the Java Collections using the sort() method.\" \/>\n<meta property=\"og:description\" content=\"We will explore the Java Collections sort method today. In Java, when dealing with Collections, it is quite common to require data sorting.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/SiliCloudGlobal\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-13T19:11:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-11T15:15:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655dc28fcdcf9b67579ff062\/16-0.png\" \/>\n<meta name=\"author\" content=\"Jackson Davis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@SiliCloudGlobal\" \/>\n<meta name=\"twitter:site\" content=\"@SiliCloudGlobal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jackson Davis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/\"},\"author\":{\"name\":\"Jackson Davis\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/55a10b8b0457c35884c25677889ad350\"},\"headline\":\"Sort the Java Collections using the sort() method.\",\"datePublished\":\"2023-03-13T19:11:29+00:00\",\"dateModified\":\"2024-03-11T15:15:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/\"},\"wordCount\":589,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/\",\"name\":\"Sort the Java Collections using the sort() method. - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\"},\"datePublished\":\"2023-03-13T19:11:29+00:00\",\"dateModified\":\"2024-03-11T15:15:12+00:00\",\"description\":\"We will explore the Java Collections sort method today. In Java, when dealing with Collections, it is quite common to require data sorting.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.silicloud.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sort the Java Collections using the sort() method.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/blog\/\",\"name\":\"Silicon Cloud Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\",\"name\":\"Silicon Cloud Blog\",\"url\":\"https:\/\/www.silicloud.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png\",\"contentUrl\":\"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png\",\"width\":1024,\"height\":1024,\"caption\":\"Silicon Cloud Blog\"},\"image\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/SiliCloudGlobal\/\",\"https:\/\/twitter.com\/SiliCloudGlobal\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/55a10b8b0457c35884c25677889ad350\",\"name\":\"Jackson Davis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2fdb47d6df1226e92380d96973782572a97b0675d098bb914410dec348eb5d29?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2fdb47d6df1226e92380d96973782572a97b0675d098bb914410dec348eb5d29?s=96&d=mm&r=g\",\"caption\":\"Jackson Davis\"},\"url\":\"https:\/\/www.silicloud.com\/blog\/author\/jacksondavis\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Sort the Java Collections using the sort() method. - Blog - Silicon Cloud","description":"We will explore the Java Collections sort method today. In Java, when dealing with Collections, it is quite common to require data sorting.","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.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/","og_locale":"en_US","og_type":"article","og_title":"Sort the Java Collections using the sort() method.","og_description":"We will explore the Java Collections sort method today. In Java, when dealing with Collections, it is quite common to require data sorting.","og_url":"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/","og_site_name":"Blog - Silicon Cloud","article_publisher":"https:\/\/www.facebook.com\/SiliCloudGlobal\/","article_published_time":"2023-03-13T19:11:29+00:00","article_modified_time":"2024-03-11T15:15:12+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655dc28fcdcf9b67579ff062\/16-0.png"}],"author":"Jackson Davis","twitter_card":"summary_large_image","twitter_creator":"@SiliCloudGlobal","twitter_site":"@SiliCloudGlobal","twitter_misc":{"Written by":"Jackson Davis","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/#article","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/"},"author":{"name":"Jackson Davis","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/55a10b8b0457c35884c25677889ad350"},"headline":"Sort the Java Collections using the sort() method.","datePublished":"2023-03-13T19:11:29+00:00","dateModified":"2024-03-11T15:15:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/"},"wordCount":589,"commentCount":0,"publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/","url":"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/","name":"Sort the Java Collections using the sort() method. - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/#website"},"datePublished":"2023-03-13T19:11:29+00:00","dateModified":"2024-03-11T15:15:12+00:00","description":"We will explore the Java Collections sort method today. In Java, when dealing with Collections, it is quite common to require data sorting.","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/blog\/sort-the-java-collections-using-the-sort-method\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.silicloud.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Sort the Java Collections using the sort() method."}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/blog\/#website","url":"https:\/\/www.silicloud.com\/blog\/","name":"Silicon Cloud Blog","description":"","publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.silicloud.com\/blog\/#organization","name":"Silicon Cloud Blog","url":"https:\/\/www.silicloud.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png","contentUrl":"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png","width":1024,"height":1024,"caption":"Silicon Cloud Blog"},"image":{"@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/SiliCloudGlobal\/","https:\/\/twitter.com\/SiliCloudGlobal"]},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/55a10b8b0457c35884c25677889ad350","name":"Jackson Davis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2fdb47d6df1226e92380d96973782572a97b0675d098bb914410dec348eb5d29?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2fdb47d6df1226e92380d96973782572a97b0675d098bb914410dec348eb5d29?s=96&d=mm&r=g","caption":"Jackson Davis"},"url":"https:\/\/www.silicloud.com\/blog\/author\/jacksondavis\/"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/1333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/comments?post=1333"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/1333\/revisions"}],"predecessor-version":[{"id":1866,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/1333\/revisions\/1866"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/media?parent=1333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/categories?post=1333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/tags?post=1333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}