{"id":689,"date":"2022-07-27T07:37:29","date_gmt":"2022-11-14T14:55:59","guid":{"rendered":"https:\/\/www.silicloud.com\/blog\/uncategorized\/converting-a-python-string-to-an-integer-and-vice-versa\/"},"modified":"2024-03-07T15:06:37","modified_gmt":"2024-03-07T15:06:37","slug":"converting-a-python-string-to-an-integer-and-vice-versa","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/","title":{"rendered":"Converting a Python string to an integer and vice versa."},"content":{"rendered":"<p>In this tutorial, we will be taught the process of converting <a href=\"https:\/\/en.wikipedia.org\/wiki\/Python_(programming_language)\">python<\/a> strings to integers and integers to strings in python. In our prior tutorial, we comprehended the concept of the append function in Python lists.<\/p>\n<h2>Convert a Python string into an integer.<\/h2>\n<p>If you have read our previous tutorials, you might have noticed that we often require this conversion. It is frequently necessary, such as when you are retrieving data from a file and it is in the form of a String, and you need to convert it to an int. Now, let&#8217;s proceed directly to the code. To convert a string representation of a number to an int, you need to utilize the int() function. Consider the following example:<\/p>\n<pre class=\"post-pre\"><code>num = '123'  # string data\r\n\r\n# print the type\r\n\r\nprint('Type of num is :', type(num))\r\n\r\n# convert using int()\r\n\r\nnum = int(num)\r\n\r\n# print the type again\r\n\r\nprint('Now, type of num is :', type(num))\r\n<\/code><\/pre>\n<p>The result of the code will be.<\/p>\n<pre class=\"post-pre\"><code>Type of num is : &lt;class 'str'&gt;\r\nNow, type of num is : &lt;class 'int'&gt;\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655cddc1c40ba52feef295a0\/6-0.png\" alt=\"Python String To Int\" \/><\/div>\n<h2>Converting a String to an int with varying bases.<\/h2>\n<p>If the string you want to convert to an integer originates from a number system other than base 10, you can indicate the base for the conversion. However, it is important to note that the resulting integer will always be in base 10. Additionally, the specified base must be within the range of 2 to 36. To grasp the conversion of a string to an integer using the base argument, refer to the following example.<\/p>\n<pre class=\"post-pre\"><code>num = '123'\r\n# print the original string\r\nprint('The original string :', num)\r\n\r\n# considering '123' be in base 10, convert it to base 10\r\n\r\nprint('Base 10 to base 10:', int(num))\r\n\r\n# considering '123' be in base 8, convert it to base 10\r\n\r\nprint('Base 8 to base 10 :', int(num, base=8))\r\n\r\n# considering '123' be in base 6, convert it to base 10\r\n\r\nprint('Base 6 to base 10 :', int(num, base=6))\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655cddc1c40ba52feef295a0\/10-0.png\" alt=\"Example of Python String to Int conversion\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655cddc1c40ba52feef295a0\/11-0.png\" alt=\"Python Convert String To Int Base\" \/><\/div>\n<h2>An error occurs while attempting to convert a string to an integer.<\/h2>\n<p>When converting from a string to an integer, you might encounter a ValueError exception. This exception occurs if the string you are trying to convert does not contain any numbers. For instance, if you are trying to convert a hexadecimal number to an integer but forget to specify the base as 16 in the int() function, a ValueError exception will be raised if any of the digits in the string do not belong to the decimal number system. The upcoming example will demonstrate this exception when converting a string to an integer.<\/p>\n<pre class=\"post-pre\"><code>\"\"\"\r\n    Scenario 1: The interpreter will not raise any exception but you get wrong data\r\n\"\"\"\r\nnum = '12'  # this is a hexadecimal value\r\n\r\n# the variable is considered as decimal value during conversion\r\nprint('The value is :', int(num))\r\n\r\n# the variable is considered as hexadecimal value during conversion\r\nprint('Actual value is :', int(num, base=16))\r\n\r\n\"\"\"\r\n    Scenario 2: The interpreter will raise ValueError exception\r\n\"\"\"\r\n\r\nnum = '1e'  # this is a hexadecimal value\r\n\r\n# the variable is considered as hexadecimal value during conversion\r\nprint('Actual value of \\'1e\\' is :', int(num, base=16))\r\n\r\n# the variable is considered as decimal value during conversion\r\nprint('The value is :', int(num))  # this will raise exception\r\n<\/code><\/pre>\n<p>The above code will produce the following result.<\/p>\n<pre class=\"post-pre\"><code>The value is : 12\r\nActual value is : 18\r\nActual value of '1e' is : 30\r\nTraceback (most recent call last):\r\n  File \"\/home\/imtiaz\/Desktop\/str2int_exception.py\", line 22, in \r\n    print('The value is :', int(num))  # this will raise exception\r\nValueError: invalid literal for int() with base 10: '1e'\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655cddc1c40ba52feef295a0\/17-0.png\" alt=\"Python String To Int ValueError\" \/><\/div>\n<h2>Converting an integer to a string in Python.<\/h2>\n<p>Converting an integer to a string is effortless and does not require any verification. You can simply utilize the str() function to carry out the conversion. Take a look at the subsequent example.<\/p>\n<pre class=\"post-pre\"><code>hexadecimalValue = 0x1eff\r\n\r\nprint('Type of hexadecimalValue :', type(hexadecimalValue))\r\n\r\nhexadecimalValue = str(hexadecimalValue)\r\n\r\nprint('Type of hexadecimalValue now :', type(hexadecimalValue))\r\n<\/code><\/pre>\n<p>The result of running the given code will be:<\/p>\n<pre class=\"post-pre\"><code>Type of hexadecimalValue : &lt;class 'int'&gt;\r\nType of hexadecimalValue now : &lt;class 'str'&gt;\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655cddc1c40ba52feef295a0\/23-0.png\" alt=\"Python Int To String Conversion\" \/><\/div>\n<p>This concludes the discussion on converting a string to an integer and vice versa in Python. For more information, refer to the official Python documentation.<\/p>\n<p>&nbsp;<\/p>\n<p>More Tutorials<\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/convert-string-to-character-in-java\/\" target=\"_blank\" rel=\"noopener\">convert string to character array 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\/python-functions-ord-and-chr\/\" target=\"_blank\" rel=\"noopener\">The Python functions ord() and chr()<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\/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","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will be taught the process of converting python strings to integers and integers to strings in python. In our prior tutorial, we comprehended the concept of the append function in Python lists. Convert a Python string into an integer. If you have read our previous tutorials, you might have noticed that [&hellip;]<\/p>\n","protected":false},"author":6,"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-689","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>Converting a Python string to an integer and vice versa. - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"we will be taught the process of converting python strings to integers and integers to strings in python. In our prior tutorial\" \/>\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\/converting-a-python-string-to-an-integer-and-vice-versa\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Converting a Python string to an integer and vice versa.\" \/>\n<meta property=\"og:description\" content=\"we will be taught the process of converting python strings to integers and integers to strings in python. In our prior tutorial\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/\" \/>\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=\"2022-11-14T14:55:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-07T15:06:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655cddc1c40ba52feef295a0\/6-0.png\" \/>\n<meta name=\"author\" content=\"Benjamin Taylor\" \/>\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=\"Benjamin Taylor\" \/>\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\/converting-a-python-string-to-an-integer-and-vice-versa\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/\"},\"author\":{\"name\":\"Benjamin Taylor\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/ac801fe9549a25960ce48aa2e0a691c9\"},\"headline\":\"Converting a Python string to an integer and vice versa.\",\"datePublished\":\"2022-11-14T14:55:59+00:00\",\"dateModified\":\"2024-03-07T15:06:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/\"},\"wordCount\":456,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/\",\"name\":\"Converting a Python string to an integer and vice versa. - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\"},\"datePublished\":\"2022-11-14T14:55:59+00:00\",\"dateModified\":\"2024-03-07T15:06:37+00:00\",\"description\":\"we will be taught the process of converting python strings to integers and integers to strings in python. In our prior tutorial\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.silicloud.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Converting a Python string to an integer and vice versa.\"}]},{\"@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\/ac801fe9549a25960ce48aa2e0a691c9\",\"name\":\"Benjamin Taylor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ec2e3d3e2d525fd148047c4520ae7c1cdccd1f4b48a1a488422b31f04f345c14?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ec2e3d3e2d525fd148047c4520ae7c1cdccd1f4b48a1a488422b31f04f345c14?s=96&d=mm&r=g\",\"caption\":\"Benjamin Taylor\"},\"url\":\"https:\/\/www.silicloud.com\/blog\/author\/benjamintaylor\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Converting a Python string to an integer and vice versa. - Blog - Silicon Cloud","description":"we will be taught the process of converting python strings to integers and integers to strings in python. In our prior tutorial","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\/converting-a-python-string-to-an-integer-and-vice-versa\/","og_locale":"en_US","og_type":"article","og_title":"Converting a Python string to an integer and vice versa.","og_description":"we will be taught the process of converting python strings to integers and integers to strings in python. In our prior tutorial","og_url":"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/","og_site_name":"Blog - Silicon Cloud","article_publisher":"https:\/\/www.facebook.com\/SiliCloudGlobal\/","article_published_time":"2022-11-14T14:55:59+00:00","article_modified_time":"2024-03-07T15:06:37+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655cddc1c40ba52feef295a0\/6-0.png"}],"author":"Benjamin Taylor","twitter_card":"summary_large_image","twitter_creator":"@SiliCloudGlobal","twitter_site":"@SiliCloudGlobal","twitter_misc":{"Written by":"Benjamin Taylor","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/#article","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/"},"author":{"name":"Benjamin Taylor","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/ac801fe9549a25960ce48aa2e0a691c9"},"headline":"Converting a Python string to an integer and vice versa.","datePublished":"2022-11-14T14:55:59+00:00","dateModified":"2024-03-07T15:06:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/"},"wordCount":456,"commentCount":0,"publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/","url":"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/","name":"Converting a Python string to an integer and vice versa. - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/#website"},"datePublished":"2022-11-14T14:55:59+00:00","dateModified":"2024-03-07T15:06:37+00:00","description":"we will be taught the process of converting python strings to integers and integers to strings in python. In our prior tutorial","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/blog\/converting-a-python-string-to-an-integer-and-vice-versa\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.silicloud.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Converting a Python string to an integer and vice versa."}]},{"@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\/ac801fe9549a25960ce48aa2e0a691c9","name":"Benjamin Taylor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ec2e3d3e2d525fd148047c4520ae7c1cdccd1f4b48a1a488422b31f04f345c14?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ec2e3d3e2d525fd148047c4520ae7c1cdccd1f4b48a1a488422b31f04f345c14?s=96&d=mm&r=g","caption":"Benjamin Taylor"},"url":"https:\/\/www.silicloud.com\/blog\/author\/benjamintaylor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/689","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/comments?post=689"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/689\/revisions"}],"predecessor-version":[{"id":1796,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/689\/revisions\/1796"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/media?parent=689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/categories?post=689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/tags?post=689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}