{"id":14,"date":"2025-01-15T15:27:21","date_gmt":"2025-01-15T15:27:21","guid":{"rendered":"https:\/\/blogs.sajansthapit.com\/?p=14"},"modified":"2025-01-19T13:54:28","modified_gmt":"2025-01-19T13:54:28","slug":"factory-pattern","status":"publish","type":"post","link":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/","title":{"rendered":"Understanding the Factory Design Pattern"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Let\u2019s start with one of the most popular and beginner-friendly design patterns the <strong>Factory Design Pattern.<\/strong>\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The Factory Design Pattern is a creational design pattern whose main objective is to simplify the creation of objects. Instead of creating objects directly in your code, let the factory pattern create them for you.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let us understand with a simple real-world example. If you go to a restaurant to have a pizza, you just place an order for the pizza you want and let the restaurant handle the entire making process. In the end, you just enjoy the pizza. The same goes for the factory design pattern, if you need an object let the factory pattern make the object for you. You just call the factory pattern to get your object.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">It may be simple to understand, but our goal here is to design the factory itself. A factory can create multiple objects of similar types. The output of the factory is dependent on the input provided. The same concept applies to the pizza restaurant &#8211; different customers prefer different types of pizza. It is the responsibility of the restaurant to deliver those varieties of pizza to different customers.<\/span><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<h4>Now let&#8217;s understand how to implement it using Java<\/h4>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Java provides an <strong>interface<\/strong> for creating objects in a <strong>superclass<\/strong> while allowing its subclasses to specify the types of objects they create. Here\u2019s how it works:<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400;\">Firstly, the interface is used to define the blueprint or a contract that all the concrete implementations must follow.<\/span><\/li>\n<li>Then the subclasses implement the interface and provide specific behavior for each type of object.<\/li>\n<li>Finally, the factory class takes the input that determines which subclass to instantiate and return the object.<\/li>\n<\/ul>\n<hr \/>\n<p>&nbsp;<\/p>\n<h4>Let&#8217;s visualize it<\/h4>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_61\" aria-describedby=\"caption-attachment-61\" style=\"width: 3772px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-61\" src=\"https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img.png\" alt=\"Factory Design Pattern\" width=\"3772\" height=\"1773\" srcset=\"https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img.png 3772w, https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img-300x141.png 300w, https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img-1024x481.png 1024w, https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img-768x361.png 768w, https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img-1536x722.png 1536w, https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img-2048x963.png 2048w\" sizes=\"auto, (max-width: 3772px) 100vw, 3772px\" \/><figcaption id=\"caption-attachment-61\" class=\"wp-caption-text\">Fig1: visualization of factory design pattern<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<ol>\n<li>The Pizza Class<br \/>\nActs as a blueprint for objects that the factory will create.<\/p>\n<pre><code class=\"language-java\">public interface Pizza {\n    void create();\n}\n<\/code><\/pre>\n<\/li>\n<li>Subclasses (CheesePizza, MixPizza and VegPizza)<br \/>\nDifferent types (implementations) of the product\/pizza.<\/p>\n<pre><code class=\"language-java\">public class CheesePizza implements Pizza{\n    @Override\n    public void create() {\n        System.out.println(&quot;Creating Cheese Pizza&quot;);\n    }\n}<\/code><\/pre>\n<pre><code class=\"language-java\">public class VegPizza implements Pizza{\n    @Override\n    public void create() {\n        System.out.println(&quot;Creating Veg Pizza&quot;);\n    }\n}\n<\/code><\/pre>\n<pre><code class=\"language-java\">public class MixPizza implements Pizza{\n    @Override\n    public void create() {\n        System.out.println(&quot;Creating Mix Pizza&quot;);\n    }\n}\n<\/code><\/pre>\n<\/li>\n<li>PizzaFactory (The Factory)<br \/>\nThe class that creates the products\/pizza.<\/p>\n<pre><code class=\"language-java\">public class PizzaFactory {\n    public Pizza getPizza(String type){\n        switch (type){\n            case &quot;cheese&quot;:\n                return new CheesePizza();\n            case &quot;mix&quot;:\n                return new MixPizza();\n            case &quot;veg&quot;:\n                return new VegPizza();\n            default:\n                return null;\n        }\n    }\n}<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>Finally, lets create a main class i.e, our Restaurant that calls the PizzaFactory to get a Pizza based on customer choice.<\/p>\n<pre><code class=\"language-java\">public class Restaurant {\n    public static void main(String[] args) {\n        PizzaFactory pizzaFactory = new PizzaFactory();\n\n        Pizza cheesePizza = pizzaFactory.getPizza(&quot;cheese&quot;);\n        cheesePizza.create();\n\n        Pizza vegPizza = pizzaFactory.getPizza(&quot;veg&quot;);\n        vegPizza.create();\n\n        Pizza mixPizza = pizzaFactory.getPizza(&quot;mix&quot;);\n        mixPizza.create();\n    }\n}<\/code><\/pre>\n<p>Which gives us the output<\/p>\n<pre><code class=\"language-\">Creating Cheese Pizza\nCreating Veg Pizza\nCreating Mix Pizza<\/code><\/pre>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<h4>So, why should you use Factory Design Pattern?<\/h4>\n<p>&nbsp;<\/p>\n<p>Now you know what the factory design pattern is and how to implement it. But now the question is why use it?<\/p>\n<ol>\n<li>Hides Complexities<br \/>\nIt hides the complexities behind the object creations that are non-essential for the client.<\/li>\n<li>Flexibility<br \/>\nNow you have complete flexibility to add new types without modifying the existing code. Just simply add a new class and implement the interface.<\/li>\n<li>Neat and Clean<br \/>\nOnce the object creation logic has been centralized the code becomes cleaner and easy to understand.<\/li>\n<li>Makes life easier<br \/>\nYour life becomes easier when it\u2019s easier to maintain and extend over time. What else do you need?<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<h4>When should you use it?<\/h4>\n<p>&nbsp;<\/p>\n<p>The answer is of course not every time. It depends on the situation.<\/p>\n<ol>\n<li>When you don\u2019t want the client code to worry about how objects are created.<\/li>\n<li>When your application needs to be flexible and support new types of objects in the future.<\/li>\n<li>When you want to centralize object creation logic for better maintainability.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<h4>Let&#8217;s wrap up<\/h4>\n<p>&nbsp;<\/p>\n<p>The Factory Design Pattern keeps your code clean, flexible, and easy to work with. By abstracting the object creation logic, it lets you focus on what really matters\u2014building awesome applications.<br \/>\nNext time you\u2019re working on a Java project, think about whether the Factory Pattern can help you. It\u2019s simple to implement, and as you\u2019ve seen, it can make your code much easier to manage.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p style=\"text-align: center;\">Happy Coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let\u2019s start with one of the most popular and beginner-friendly design patterns the Factory Design Pattern.\u00a0 The Factory Design Pattern is a creational design pattern whose main objective is to simplify the creation of objects. Instead of creating objects directly in your code, let the factory pattern create them for you.\u00a0 Let us understand with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[5,6,3],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-design-patterns","category-java","tag-desgin-pattern","tag-factory-design-pattern","tag-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Understanding the Factory Design Pattern - blogs.sajansthapit.com<\/title>\n<meta name=\"description\" content=\"Let&#039;s understand Factory Design Pattern, one of the most popular and beginner-friendly design patterns in detail...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding the Factory Design Pattern - blogs.sajansthapit.com\" \/>\n<meta property=\"og:description\" content=\"Let&#039;s understand Factory Design Pattern, one of the most popular and beginner-friendly design patterns in detail...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/\" \/>\n<meta property=\"og:site_name\" content=\"blogs.sajansthapit.com\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-15T15:27:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-19T13:54:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img.png\" \/>\n\t<meta property=\"og:image:width\" content=\"3772\" \/>\n\t<meta property=\"og:image:height\" content=\"1773\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/blogs.sajansthapit.com\/#\/schema\/person\/5681d9d4121ccc7789717f808e8edcc4\"},\"headline\":\"Understanding the Factory Design Pattern\",\"datePublished\":\"2025-01-15T15:27:21+00:00\",\"dateModified\":\"2025-01-19T13:54:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/\"},\"wordCount\":632,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blogs.sajansthapit.com\/#\/schema\/person\/5681d9d4121ccc7789717f808e8edcc4\"},\"image\":{\"@id\":\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img.png\",\"keywords\":[\"desgin-pattern\",\"factory design pattern\",\"java\"],\"articleSection\":[\"Design Patterns\",\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/\",\"url\":\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/\",\"name\":\"Understanding the Factory Design Pattern - blogs.sajansthapit.com\",\"isPartOf\":{\"@id\":\"https:\/\/blogs.sajansthapit.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img.png\",\"datePublished\":\"2025-01-15T15:27:21+00:00\",\"dateModified\":\"2025-01-19T13:54:28+00:00\",\"description\":\"Let's understand Factory Design Pattern, one of the most popular and beginner-friendly design patterns in detail...\",\"breadcrumb\":{\"@id\":\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#primaryimage\",\"url\":\"https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img.png\",\"contentUrl\":\"https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img.png\",\"width\":3772,\"height\":1773,\"caption\":\"Fig1: visualization of factory design pattern\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blogs.sajansthapit.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding the Factory Design Pattern\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blogs.sajansthapit.com\/#website\",\"url\":\"https:\/\/blogs.sajansthapit.com\/\",\"name\":\"blogs.sajansthapit.com\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/blogs.sajansthapit.com\/#\/schema\/person\/5681d9d4121ccc7789717f808e8edcc4\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blogs.sajansthapit.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blogs.sajansthapit.com\/#\/schema\/person\/5681d9d4121ccc7789717f808e8edcc4\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blogs.sajansthapit.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d17a183aedd86cc508635e48ed228c44aba311ccb906c855852386ead5cb687c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d17a183aedd86cc508635e48ed228c44aba311ccb906c855852386ead5cb687c?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"logo\":{\"@id\":\"https:\/\/blogs.sajansthapit.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/blogs.sajansthapit.com\"],\"url\":\"https:\/\/blogs.sajansthapit.com\/index.php\/author\/sajansthapit\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding the Factory Design Pattern - blogs.sajansthapit.com","description":"Let's understand Factory Design Pattern, one of the most popular and beginner-friendly design patterns in detail...","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:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/","og_locale":"en_US","og_type":"article","og_title":"Understanding the Factory Design Pattern - blogs.sajansthapit.com","og_description":"Let's understand Factory Design Pattern, one of the most popular and beginner-friendly design patterns in detail...","og_url":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/","og_site_name":"blogs.sajansthapit.com","article_published_time":"2025-01-15T15:27:21+00:00","article_modified_time":"2025-01-19T13:54:28+00:00","og_image":[{"width":3772,"height":1773,"url":"https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#article","isPartOf":{"@id":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/"},"author":{"name":"admin","@id":"https:\/\/blogs.sajansthapit.com\/#\/schema\/person\/5681d9d4121ccc7789717f808e8edcc4"},"headline":"Understanding the Factory Design Pattern","datePublished":"2025-01-15T15:27:21+00:00","dateModified":"2025-01-19T13:54:28+00:00","mainEntityOfPage":{"@id":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/"},"wordCount":632,"commentCount":0,"publisher":{"@id":"https:\/\/blogs.sajansthapit.com\/#\/schema\/person\/5681d9d4121ccc7789717f808e8edcc4"},"image":{"@id":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#primaryimage"},"thumbnailUrl":"https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img.png","keywords":["desgin-pattern","factory design pattern","java"],"articleSection":["Design Patterns","Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/","url":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/","name":"Understanding the Factory Design Pattern - blogs.sajansthapit.com","isPartOf":{"@id":"https:\/\/blogs.sajansthapit.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#primaryimage"},"image":{"@id":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#primaryimage"},"thumbnailUrl":"https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img.png","datePublished":"2025-01-15T15:27:21+00:00","dateModified":"2025-01-19T13:54:28+00:00","description":"Let's understand Factory Design Pattern, one of the most popular and beginner-friendly design patterns in detail...","breadcrumb":{"@id":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#primaryimage","url":"https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img.png","contentUrl":"https:\/\/blogs.sajansthapit.com\/wp-content\/uploads\/2025\/01\/factory-design-pattern-img.png","width":3772,"height":1773,"caption":"Fig1: visualization of factory design pattern"},{"@type":"BreadcrumbList","@id":"https:\/\/blogs.sajansthapit.com\/index.php\/2025\/01\/15\/factory-pattern\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blogs.sajansthapit.com\/"},{"@type":"ListItem","position":2,"name":"Understanding the Factory Design Pattern"}]},{"@type":"WebSite","@id":"https:\/\/blogs.sajansthapit.com\/#website","url":"https:\/\/blogs.sajansthapit.com\/","name":"blogs.sajansthapit.com","description":"","publisher":{"@id":"https:\/\/blogs.sajansthapit.com\/#\/schema\/person\/5681d9d4121ccc7789717f808e8edcc4"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blogs.sajansthapit.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/blogs.sajansthapit.com\/#\/schema\/person\/5681d9d4121ccc7789717f808e8edcc4","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blogs.sajansthapit.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d17a183aedd86cc508635e48ed228c44aba311ccb906c855852386ead5cb687c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d17a183aedd86cc508635e48ed228c44aba311ccb906c855852386ead5cb687c?s=96&d=mm&r=g","caption":"admin"},"logo":{"@id":"https:\/\/blogs.sajansthapit.com\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/blogs.sajansthapit.com"],"url":"https:\/\/blogs.sajansthapit.com\/index.php\/author\/sajansthapit\/"}]}},"_links":{"self":[{"href":"https:\/\/blogs.sajansthapit.com\/index.php\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.sajansthapit.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.sajansthapit.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.sajansthapit.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.sajansthapit.com\/index.php\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":28,"href":"https:\/\/blogs.sajansthapit.com\/index.php\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/blogs.sajansthapit.com\/index.php\/wp-json\/wp\/v2\/posts\/14\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/blogs.sajansthapit.com\/index.php\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.sajansthapit.com\/index.php\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.sajansthapit.com\/index.php\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}