

{"id":12393,"date":"2018-03-31T08:46:32","date_gmt":"2018-03-31T08:46:32","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=12393"},"modified":"2026-05-07T12:58:16","modified_gmt":"2026-05-07T07:28:16","slug":"type-conversion-in-java","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/","title":{"rendered":"Type Conversion in Java &#8211; Explore Automatic &amp; Explicit Type Casting"},"content":{"rendered":"<p>Have you seen? It is easy to transfer water from a small container to a larger one, but what happens when you want to do it in reverse, from a larger to a smaller one?. Similarly, type conversion in Java works. We will further see in this article how we convert the data type of a larger size into a smaller size, and also, we will discuss different types of type conversion in Java.<\/p>\n<p>As you must already be familiar with, Java does have a lot of primitive data types. This means there is often confusion about which datatype to use. There is also the case where you have to change the datatypes on the fly to keep up with the dynamics of the program. Let us look at how we do type conversion in Java.<\/p>\n<h3>Type Conversion in Java<\/h3>\n<p>Yes, you guessed it right. Type Conversion is indeed the conversion of variables from one data type to another. In Java, there are two main types of type conversion.<\/p>\n<ol>\n<li>Explicit Type Conversion<\/li>\n<li>Implicit Type Conversion<\/li>\n<\/ol>\n<p>Before we understand that we have to know the size hierarchy of data types.<br \/>\nLet us observe all of them in increasing order in the list below.<\/p>\n<ul>\n<li>byte<\/li>\n<li>short<\/li>\n<li>int<\/li>\n<li>long<\/li>\n<li>float<\/li>\n<li>double<\/li>\n<\/ul>\n<h4>Implicit Type Conversion<\/h4>\n<p>Java converts shorter data types to larger data types when they are assigned to the larger variable.<\/p>\n<p>For example, if you assign a short value to an int variable, then Java does the work for you and converts the short value to an int and stores it in the int variable.<\/p>\n<p>This is similar to the fact that you can put a raisin in an XXL polythene bag. However, if you want to put the inverse, you have to work out a solution because it is not going to be easy.<\/p>\n<p>Let us look at examples now!<\/p>\n<p><strong>Java program to illustrate automatic type conversion.<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.dataflair.typeconversion;\r\npublic class ImplicitConversion\r\n{\r\n    public static void main(String[] args) {\r\n        \r\n        int numberint;\r\n        short numbershort;\r\n        byte numberbyte;\r\n        float numberfloat;\r\n        double numberdouble;\r\n        long numberlong;\r\n\r\n        \/\/We have the datatypes we need. Now let us set a value to the shortest datatype. \r\n        \/\/That is byte. \r\n\r\n        numberbyte=21;\r\n        numbershort=numberbyte;\r\n        numberint=numbershort;\r\n        numberlong=numberint;\r\n        numberfloat=numberlong;\r\n        numberdouble=numberfloat;\r\n\r\n        System.out.println(\"The short value is \"+numbershort);\r\n        System.out.println(\"The byte value is \"+numberbyte);\r\n\r\n        System.out.println(\"The int value is \"+numberint);\r\n\r\n        System.out.println(\"The long value is \"+numberlong);\r\n        System.out.println(\"The float value is \"+numberfloat);\r\n        System.out.println(\"The long value is \"+numberdouble);\r\n        \r\n        System.out.println(\"This is explicit conversion\");\r\n    }\r\n}\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">The short value is 21<br \/>\nThe byte value is 21<br \/>\nThe int value is 21<br \/>\nThe long value is 21<br \/>\nThe float value is 21.0<br \/>\nThe long value is 21.0<br \/>\nThis is explicit conversion<\/div>\n<p>Observe how the value in short automatically got converted to int without any explicit action by the programmer.<\/p>\n<p>Java carries out an operation known as type promotion in automatic type conversion. Before carrying out an operation, Java promotes both operands involved in an expression that involves different data types to a common data type. The following is the hierarchy of promotions.<\/p>\n<p>byte -&gt; short -&gt; int -&gt; long -&gt; float -&gt; double<\/p>\n<p>Java does this when you assign a smaller variable to a larger variable.<\/p>\n<p>If you are having trouble learning about the different types of datatypes, please read the \u201cDatatypes in Java\u201d article first.<\/p>\n<p>Okay, back to where we were. Now, if you go ahead and try a different way of converting the data types, the compiler would not be happy. Don\u2019t believe me? Let us try it out then.<\/p>\n<p><strong>Java program to discuss the problem with type conversion:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.dataflair.typeconversion;\r\npublic class ExplicitProblem {\r\n    public static void main(String[] args) {\r\n        \r\n        int a=57;\r\n        byte b =a;\r\n        System.out.print(b);\r\n        \r\n    }\r\n    \r\n}\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">ExplicitProblem.java:5: error: incompatible types: possible lossy conversion from int to byte<br \/>\nbyte b =a;<\/div>\n<p>^<\/p>\n<h4>Explicit Type Conversion in Java<\/h4>\n<p>The conversion is lossy because the variable int is larger in size than the data type byte. That is why the compiler thinks it\u2019s not safe to convert the entire data type because it would lose data.<\/p>\n<p>Do not worry just yet, there is a beautiful workaround for this problem, and we are going to see that now.<\/p>\n<p>Java program to illustrate the working of explicit conversion in Java<\/p>\n<p>Whenever you want to explicitly convert the value of a certain data type to one of a lesser size, you must use the name of the data type bound by round brackets in front of the variable name.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.dataflair.\r\npublic class ExplicitProblem {\r\n    public static void main(String[] args) {\r\n        \r\n        int a=257;\r\n        byte b =(byte)a;\r\n        System.out.print(b);\r\n\r\n    }\r\n    \r\n}\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">1<\/div>\n<p>Hah! The output confused you? Well, if it did not, your concepts are solid! For those who did not understand why this output changed and did not print 257, the byte is actually capable of storing a max value of 255.<\/p>\n<p>A single byte consists of 8 bits, and it can store anything between -127 to 127. So the value is actually N mod 256. Here, in this case, 257 mod 256 equals 1, hence the output only shows 1.<\/p>\n<p>This is the loss the compiler was talking about previously.<\/p>\n<p>Choosing the correct data type is extremely important in programming and it comes with a lot of practice and knowledge.<\/p>\n<h3>Type Promotion in Expressions<\/h3>\n<p>This is a very interesting thing to ponder about. When there is an expression, what happens to the datatypes? Do they all remain exactly as they were before, or do they get promoted to other data types?<\/p>\n<p>Well, in a particular expression, Java promotes all the short, byte and char characters to the int datatype. However, if there are float or double data types present in the expression, then all the values are promoted to the highest value datatype in the expression.<\/p>\n<p>Confused? Don\u2019t worry, we have got you covered.<\/p>\n<p><strong>Java program to illustrate the promotion of type in expressions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.dataflair.typeconversion;\r\npublic class TypePromotionExpression {\r\n    public static void main(String[] args) {\r\n        \r\n        System.out.println(\"This program will illustrate the automatic type promotion of Java\");\r\n\r\n\r\n        int a=76;\r\n        long l=65123l;\r\n        float f = 70.26f;\r\n        double d=98.9898d;\r\n        char c='z';\r\n\r\n        System.out.println(a+c\/d-f+l);\r\n    }\r\n}\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">This program will illustrate the automatic type promotion of Java<br \/>\n65129.97244807581<\/div>\n<p>Observe how the resultant data type is a double. This is an automatic type promotion.<\/p>\n<h3>Explicit Type Casting in Java<\/h3>\n<p>Last but not least, we have to understand that the automatic promotion may get us in trouble sometimes.<\/p>\n<p>This is evident because as soon as you perform some operation on a shorter datatype, Java converts it to a larger data type.<\/p>\n<p>What if we do not want the variable to change its type? For that, we have to use explicit type conversion just like the one we learned in the previous topic.<\/p>\n<p>After performing operations, we need to explicitly convert the resultant variable to the intended one if we want to preserve its type. How? Let us see.<\/p>\n<p><strong>Java program to illustrate the use of explicit type casting in expressions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.dataflair.typeconversion;\r\npublic class TypePromotionExpression {\r\n    public static void main(String[] args) {\r\n        \r\n        System.out.println(\"This program will illustrate the automatic type promotion of Java\");\r\n\r\n\r\n        byte a= 127;\r\n        a++;\r\n        System.out.println(\"Now the datatype of a has changed to int. a =&gt; \"+a);\r\n        a=(byte)a;\/\/explicit conversion of int c to char c. \r\n        System.out.println(\"Now it\u2019s back to a byte. a=&gt; \"+a);\r\n        \r\n    }\r\n}\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">This program will illustrate the automatic type promotion of Java<br \/>\nNow the datatype of a has changed to int. a =&gt; -128<br \/>\nNow it\u2019s back to a byte. a=&gt; -128<\/div>\n<p>Let us look at an example of a character for a better understanding:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.dataflair.typeconversion;\r\npublic class TypePromotionExpression {\r\n    public static void main(String[] args) {\r\n        \r\n        System.out.println(\"This program will illustrate the automatic type promotion of Java\");\r\n\r\n\r\n        char c='s';\r\n        int a=1;\r\n        int b=c+a;\r\n        System.out.println(\"This means that b is now an int value \"+b);\r\n        System.out.println(\"We can explicitly typecast it to a character like this \"+(char)(b));\r\n        \r\n        \r\n    }\r\n}\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">This program will illustrate the automatic type promotion of Java<br \/>\nThis means that b is now an int value 116<br \/>\nWe can explicitly typecast it to a character like this t<\/div>\n<p>This is a classic example where you can see that the value gets converted from a character to an integer upon performing operations on it with an int value.<\/p>\n<p>This is beautiful to observe.<\/p>\n<h3>Summary<\/h3>\n<p>Phew! We are now at the end of another exciting article about type conversions in Java. One step closer to being a Java developer.<\/p>\n<p>Now we know what \u2018type conversion\u2019 in Java is, how automatic and explicit type conversion work, how to avoid getting errors and how to explicitly convert any data type to a datatype of your choice. Efficient programs carefully use as much memory as they require.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you seen? It is easy to transfer water from a small container to a larger one, but what happens when you want to do it in reverse, from a larger to a smaller&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":85707,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[20826,20825,7727,20824],"class_list":["post-12393","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-java-automatic-type-conversion","tag-java-explicit-type-conversion","tag-java-type-casting","tag-java-type-conversion"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Type Conversion in Java - Explore Automatic &amp; Explicit Type Casting - DataFlair<\/title>\n<meta name=\"description\" content=\"Type conversion helps to convert one data type to another. Learn about Automatic and Explicit type-casting in Java with example.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Type Conversion in Java - Explore Automatic &amp; Explicit Type Casting - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Type conversion helps to convert one data type to another. Learn about Automatic and Explicit type-casting in Java with example.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-31T08:46:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-07T07:28:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Type-Conversion-in-Java-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Type Conversion in Java - Explore Automatic &amp; Explicit Type Casting - DataFlair","description":"Type conversion helps to convert one data type to another. Learn about Automatic and Explicit type-casting in Java with example.","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:\/\/data-flair.training\/blogs\/type-conversion-in-java\/","og_locale":"en_US","og_type":"article","og_title":"Type Conversion in Java - Explore Automatic &amp; Explicit Type Casting - DataFlair","og_description":"Type conversion helps to convert one data type to another. Learn about Automatic and Explicit type-casting in Java with example.","og_url":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-03-31T08:46:32+00:00","article_modified_time":"2026-05-07T07:28:16+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Type-Conversion-in-Java-1.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Type Conversion in Java &#8211; Explore Automatic &amp; Explicit Type Casting","datePublished":"2018-03-31T08:46:32+00:00","dateModified":"2026-05-07T07:28:16+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/"},"wordCount":1169,"commentCount":3,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Type-Conversion-in-Java-1.jpg","keywords":["Java Automatic Type Conversion","Java Explicit Type Conversion","Java Type Casting","Java Type Conversion"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/","url":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/","name":"Type Conversion in Java - Explore Automatic &amp; Explicit Type Casting - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Type-Conversion-in-Java-1.jpg","datePublished":"2018-03-31T08:46:32+00:00","dateModified":"2026-05-07T07:28:16+00:00","description":"Type conversion helps to convert one data type to another. Learn about Automatic and Explicit type-casting in Java with example.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Type-Conversion-in-Java-1.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Type-Conversion-in-Java-1.jpg","width":1200,"height":628,"caption":"Type Conversion in Java"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/type-conversion-in-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Java Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/java\/"},{"@type":"ListItem","position":3,"name":"Type Conversion in Java &#8211; Explore Automatic &amp; Explicit Type Casting"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/12393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=12393"}],"version-history":[{"count":16,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/12393\/revisions"}],"predecessor-version":[{"id":148252,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/12393\/revisions\/148252"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/85707"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=12393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=12393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=12393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}