{"id":77502,"date":"2020-04-01T10:50:45","date_gmt":"2020-04-01T05:20:45","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=77502"},"modified":"2020-04-01T10:50:45","modified_gmt":"2020-04-01T05:20:45","slug":"java-null","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/java-null\/","title":{"rendered":"Java Null &#8211; Explore the Unknown Facts about Null in Java"},"content":{"rendered":"<p>Java and Null share a unique bond with each other. Almost all Java developers face troubles with the NullPointerException, which is the illest-reputed fact about Java Null.<\/p>\n<p>Because, the null variables, references, and collections are tricky to handle in Java code. Not only they are hard to identify, but also complex to deal with. Instead of ruing about Java null, it is better to learn more about it and make sure we use it correctly.<\/p>\n<p>In this Java article today, we are going to discuss what is Java Null and its seven unknown facts in Java Programming Language. We will also explore some techniques to minimize null checks and how to avoid nasty null pointer exceptions.<\/p>\n<h3>What is Java Null?<\/h3>\n<p>In Java, null is a keyword much like the other keywords public, static or final. It is just a value that shows that the object is referring to nothing. The invention of the word \u201cnull\u201d originated to denote the absence of something.<\/p>\n<p>For example, the absence of the user, a resource, or anything. But, over the years it puts Java programmers in trouble due to the nasty null pointer exception. When you declare a boolean variable, it gets its default value as false.<\/p>\n<p>Similarly, any reference <em><strong>variable in Java<\/strong><\/em> has null as a default value. We use null to denote &#8220;no object&#8221; or &#8220;unknown&#8221; or &#8220;unavailable&#8221;, but these meanings are application-specific.<\/p>\n<h3>Some Unknown Facts About Null in Java<\/h3>\n<p>There are some facts about null that you should know to become a good programmer in Java.<\/p>\n<h4>1. Java Null is Case Sensitive<\/h4>\n<p>The \u201cnull\u201d in Java is literal and we know that Java keywords are case sensitive. So, we cannot write null as Null or NULL. If we do so, the compiler will not be able to recognize them and give an error. For example,<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Object obj = NULL;  \/\/ Not Accepted\nObject obj = Null;  \/\/ Not Accepted\nObject obj1 = null  \/\/Accepted<\/pre>\n<p><strong>Code to understand that Java null is case-sensitive:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">public class Example\n{\n  public static void main (String[] args) throws java.lang.Exception\n  {\n    \/\/ compile-time error\n    Example obj = NULL;\n\n    \/\/runs successfully\n    Example obj1 = null;\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Exception in thread &#8220;main&#8221; java.lang.Error: Unresolved compilation problem:<br \/>\nNULL cannot be resolved to a variable at Example.java:6<\/div>\n<h4>2. Value of Reference Variable is null<\/h4>\n<p>Any reference variable automatically has a null value as its default value.<\/p>\n<p><strong>Code to understand that reference variables have null values:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.javanull;\npublic class NullExamples\n{\n  private static Object obj;\n  private static Integer i;\n  private static NullExamples t1;\n\n  public static void main(String args[])\n  {\n    \/\/ it will print null;\n    System.out.println(\"Value of Object obj is: \" + obj);\n    System.out.println(\"Value of Integer object i is: \" + i);\n    System.out.println(\"Value of NullExamples object t1 is: \" + t1);\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Value of Object obj is: null<br \/>\nValue of Integer object i is: null<br \/>\nValue of NullExamples object t1 is: null<\/div>\n<h4>3. Type of null<\/h4>\n<p>The null is just a special value. It is neither an Object nor a type that we can assign to any reference type and typecast it to any type.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">\/\/ null can be assigned to String\n    String string = null;\n\n\/\/ you can assign null to Integer also\nInteger myInt = null;\n\n\/\/ null can also be assigned to Double\nDouble myDouble = null;\n\n\/\/ null can be type cast to String\nString myStr = (String) null;\n\n\/\/ We can also type cast it to Integer\nInteger myInt1 = (Integer) null;\n\n\/\/ yes it's possible, no error\nDouble myDouble1 = (Double) null;<\/pre>\n<h4>4. Autoboxing and Unboxing in Java<\/h4>\n<p>We can perform auto-boxing and unboxing operations with null values. We can assign null only to the reference types, not to primitive variables like char, int, double, float or boolean. The compiler will throw a <strong>NullpointerException<\/strong> if we assign a null value to a <em><strong>primitive data type in Java<\/strong><\/em>. The following code shows this concept.<\/p>\n<p><strong>Code to understand Autoboxing and Unboxing with null:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.javanull;\npublic class NullExamples\n{\n  public static void main (String[] args) throws java.lang.Exception\n  {\n    \/\/No error, because we are assigning null to reference type of wrapper class.\n    Integer myIntObj = null;\n\n    \/\/There will be an error as we are unboxing null to int type\n    int intType = myIntObj;\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Exception in thread &#8220;main&#8221; java.lang.NullPointerException<br \/>\nat project1\/com.techvidvan.javanull.NullExamples.main(NullExamples.java:10)<\/div>\n<h4>5. instanceof Operator in Java<\/h4>\n<p>The use of the instanceof operator to test whether the object belongs to the specified type of class or subclass or interface. The instanceof operator evaluates to true if the value of the expression is not null. The instanceof operation is very useful for checking the typecasting.<\/p>\n<p><strong>Code to illustrate the use of instanceof operator with null:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">public class NullExamples\n{\n  public static void main (String[] args) throws java.lang.Exception\n  {\n    Double d1 = null;\n    Double d2 = 3.67;\n\n    \/\/prints false\n    System.out.println( d1 instanceof Double );\n\n    \/\/prints true\n    System.out.println( d2 instanceof Double );\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">false<br \/>\ntrue<\/div>\n<h4>6. Using null with Static and Non-static Methods in Java<\/h4>\n<p>We can call a static method with reference variables with null values. But, if we call a non-static method on a reference variable with a null value, the compiler will throw NullPointerException. Static methods do not throw the exception because these methods are connected to each other using static binding.<\/p>\n<p><strong>Code to use null with static and non-static methods:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.javanull;\npublic class NullExamples\n{\n  private static void staticMethod()\n  {\n    System.out.println(\"We can call the static method by a null reference\\n\");\n  }\n  private void nonStaticMethod()\n  {\n    System.out.print(\"We cannot call a non-static method by a null reference.\");\n\n  }\n  public static void main(String args[])\n  {\n    NullExamples obj = null;\n    obj.staticMethod();\n    obj.nonStaticMethod();\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">We can call the static method by a null referenceException in thread &#8220;main&#8221; java.lang.NullPointerException<br \/>\nat project1\/com.techvidvan.javanull.NullExamples.main(NullExamples.java:17)<\/div>\n<h4>7. Equals (==) and Not Equals (!=) Operator<\/h4>\n<p>We can use these comparison operators (equal to and not equal to) with a null operator. But, we cannot use it with other arithmetic or logical operators like less than (&lt;) or greater than (&gt;). The expression <strong>null == null<\/strong> will return true in Java.<\/p>\n<p><strong>Code to illustrate use of == and != operators in Java:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.javanull;\npublic class NullExamples\n{\n  public static void main(String args[])\n  {\n    String string1 = null;\n    String string2 = null;\n\n    if(string1 == string2)\n    {\n      System.out.println(\"null == null is true in Java\");\n    }\n    System.out.println(null == null);\n    System.out.println(null != null);\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">null == null is true in Java<br \/>\ntrue<br \/>\nfalse<\/div>\n<h4>NullPointerException in Java<\/h4>\n<p>A NullPointerException is an exception in Java. We get a NullPointerException when an application tries to use an object reference with a null value. If we try to access a null reference then there is a NullPointerException or when we attempt to use null in a case where there is a requirement of an object.<\/p>\n<h5>Calling the method for a null reference gives a NullPointerException<\/h5>\n<p>When we try to call a method that returns null, then we get a NullPointerException. The below code explains this concept:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.javanull;\npublic class NullExamples\n{\n  public void doSomething()\n  {\n    String result = doSomethingElse();\n    if (result.equalsIgnoreCase(\"Success\"))\n      System.out.println(\"Success\");\n  }\n  private String doSomethingElse()\n  {\n    return null;\n  }\n  public static void main(String args[])\n  {\n    NullExamples t = new NullExamples();\n    t.doSomething();\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Exception in thread &#8220;main&#8221; java.lang.NullPointerException<br \/>\nat project1\/com.techvidvan.javanull.NullExamples.doSomething(NullExamples.java:7)<br \/>\nat project1\/com.techvidvan.javanull.NullExamples.main(NullExamples.java:17)<\/div>\n<h5>Accessing a null array gives a NullPointerException<\/h5>\n<p>If we access a null array then it gives a NullPointerException.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.javanull;\npublic class NullExamples\n{\n  private static void findMax(int[ ] arr)\n  {\n    int max = arr[0];\t\/\/this line gives NullPointerException\n    \/\/check other elements in loop\n  }\n  public static void main(String args[])\n  {\n    findMax(null);\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Exception in thread &#8220;main&#8221; java.lang.NullPointerException<br \/>\nat project1\/com.techvidvan.javanull.NullExamples.findMax(NullExamples.java:5)<br \/>\nat project1\/com.techvidvan.javanull.NullExamples.main(NullExamples.java:10)<\/div>\n<p>From the above examples, we can understand that accessing any variables, fields, methods, or array of a null object gives a NullPointerException.<\/p>\n<h5>Handling NullPointerException in Java<\/h5>\n<p>The most common way of handling the NullPointerException is: by using an if-else condition or a<strong> try-catch<\/strong> block to check if a reference variable is null, before dereferencing it.<\/p>\n<p><strong>Code to avoid NullPointerException using if-else condition:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.javanull;\npublic class NullExamples\n{\n  public void doSomething()\n  {\n    String result = doSomethingElse();\n    if (result != null &amp;&amp; result.equalsIgnoreCase(\"Success\"))\n    {\n      \/\/ success\n      System.out.println(\"Success\");\n    }\n    else\n      \/\/ failure\n      System.out.println(\"Failure\");\n  }\n  private String doSomethingElse()\n  {\n    return null;\n  }\n  public static void main(String args[])\n  {\n    NullExamples t = new NullExamples();\n    t.doSomething();\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Failure<\/div>\n<h3>Summary<\/h3>\n<p>Here we come to the end of our article. Null in Java is the reason for many troubles to the developers while they\u2019re programming. It should be handled properly so as to avoid the NullPointerException.<\/p>\n<p>There are many facts about this null in Java that you should know while programming.<\/p>\n<p>In this article, we discussed the ways which can cause an exception at runtime. I hope now you are familiar with the concept of null and NullPointerException in Java.<\/p>\n<p>Thank you for reading our article. Do share our article on Social Media.<\/p>\n<p>Happy Leaning \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java and Null share a unique bond with each other. Almost all Java developers face troubles with the NullPointerException, which is the illest-reputed fact about Java Null. Because, the null variables, references, and collections&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":77862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[2091,2092,2093,2094,2095],"class_list":["post-77502","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-java-null","tag-java-null-unknown-facts","tag-null-in-java","tag-nullpointerexceptions","tag-unknown-facts-of-java-null"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Java Null - Explore the Unknown Facts about Null in Java - TechVidvan<\/title>\n<meta name=\"description\" content=\"Get to know in detail about hte concept of Java Null and in this article, we have discussed the ways of Java Null which can cause an exception at runtime.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/java-null\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java Null - Explore the Unknown Facts about Null in Java - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Get to know in detail about hte concept of Java Null and in this article, we have discussed the ways of Java Null which can cause an exception at runtime.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/java-null\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-01T05:20:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/04\/unknown-facts-about-java-null.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java Null - Explore the Unknown Facts about Null in Java - TechVidvan","description":"Get to know in detail about hte concept of Java Null and in this article, we have discussed the ways of Java Null which can cause an exception at runtime.","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:\/\/techvidvan.com\/tutorials\/java-null\/","og_locale":"en_US","og_type":"article","og_title":"Java Null - Explore the Unknown Facts about Null in Java - TechVidvan","og_description":"Get to know in detail about hte concept of Java Null and in this article, we have discussed the ways of Java Null which can cause an exception at runtime.","og_url":"https:\/\/techvidvan.com\/tutorials\/java-null\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2020-04-01T05:20:45+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/04\/unknown-facts-about-java-null.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/java-null\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-null\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Java Null &#8211; Explore the Unknown Facts about Null in Java","datePublished":"2020-04-01T05:20:45+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-null\/"},"wordCount":1052,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-null\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/04\/unknown-facts-about-java-null.jpg","keywords":["Java Null","java null unknown facts","Null in Java","nullpointerexceptions","unknown facts of java null"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/java-null\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/java-null\/","url":"https:\/\/techvidvan.com\/tutorials\/java-null\/","name":"Java Null - Explore the Unknown Facts about Null in Java - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-null\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-null\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/04\/unknown-facts-about-java-null.jpg","datePublished":"2020-04-01T05:20:45+00:00","description":"Get to know in detail about hte concept of Java Null and in this article, we have discussed the ways of Java Null which can cause an exception at runtime.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-null\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/java-null\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/java-null\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/04\/unknown-facts-about-java-null.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/04\/unknown-facts-about-java-null.jpg","width":802,"height":420},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/java-null\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Java Null &#8211; Explore the Unknown Facts about Null in Java"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/77502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=77502"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/77502\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/77862"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=77502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=77502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=77502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}