{"id":99521,"date":"2017-10-14T13:35:31","date_gmt":"2017-10-14T13:35:31","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=99521"},"modified":"2019-10-01T11:37:38","modified_gmt":"2019-10-01T11:37:38","slug":"string-and-bytes-conversion-in-python3-x","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/","title":{"rendered":"Performing String and Bytes Data Conversion in Python3.x"},"content":{"rendered":"<p>In Python 3.5 String and Bytes are not same as in Python2.7, the manual conversion between them need to do using and <code>encode<\/code><code>&lt;==&gt; decode<\/code> method.<\/p>\n<blockquote>\n<pre style=\"text-align: left\"><span style=\"color: #000000\"><strong>String<\/strong>===&gt;(encode)==&gt;<strong>Byte<\/strong>===&gt;(decode)==&gt;<strong>String<\/strong><\/span><\/pre>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p><strong>String Encode:<\/strong><\/p>\n<p style=\"padding-left: 30px\">encode(&#8230;) method of <strong>builtins.str instance<\/strong><br \/>\n<strong>S.encode(encoding=&#8217;utf-8&#8242;, errors=&#8217;strict&#8217;) -&gt; bytes<\/strong><\/p>\n<p><strong>Bytes Decode:<\/strong><\/p>\n<p style=\"padding-left: 30px\">decode(&#8230;) method of <strong>builtins.bytes instance<\/strong><\/p>\n<p style=\"padding-left: 30px\"><strong>B.decode(encoding=&#8217;utf-8&#8242;, errors=&#8217;strict&#8217;) -&gt; str<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>While doing Python 2.7 to Python 3.5 migration the most common issue is related to Text(String and Bytes) data type, One of such common issue is:<\/p>\n<p><strong>TypeError: a bytes-like object is required, not &#8216;str&#8217;<\/strong><\/p>\n<p>Error occurs due to the type mismatch of bytes and string.<\/p>\n<p>For solving this error <code>encode<\/code> the string data to bytes format by calling string_data.encode().<\/p>\n<p>&nbsp;<\/p>\n<p>Python 3.x the <code>unicode<\/code> type has been renamed as <code>str<\/code> and the older <code>str<\/code> type has been replaced by <code>bytes<\/code>.<\/p>\n<p>See the below example&nbsp; (in Python 2.x)<\/p>\n<pre class=\"brush:py\">#Bytes and String data are same.\n\nbytes==str  #True\n\nhelp(bytes) #class str(basestring)\n\nhelp(str) #class str(basestring)\n\n\n#String and Unicode data are different.\n\nstr==unicode # False\nhelp(str) #class str(basestring)\n\nhelp(unicode) #class unicode(basestring)\n<\/pre>\n<p>&nbsp;<\/p>\n<p>The same code in Python3.x<\/p>\n<pre class=\"brush:py\">#Bytes and String data are different.\n\nbytes==str  #False\n\nhelp(bytes) #class bytes(object)\nhelp(str) #class str(object)\n\n#Unicode data type not exists.\n\nunicode#NameError: name 'unicode' is not defined\n<\/pre>\n<p>&nbsp;<\/p>\n<p>That\u2019s all for today. I hope this blog will help you. I\u2019d be very grateful if you\u2019d write your opinions, comments, and suggestions to keep the page updated and interesting.<\/p>\n<p>You may also like our post on <a href=\"https:\/\/webkul.com\/blog\/using-python-ftplib-library-file-transfer\/\">using Python&nbsp; ftplib library for File transfer.<br \/>\n<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Python 3.5 String and Bytes are not same as in Python2.7, the manual conversion between them need to do using and encode&lt;==&gt; decode method. String===&gt;(encode)==&gt;Byte===&gt;(decode)==&gt;String &nbsp; String Encode: encode(&#8230;) method of builtins.str instance S.encode(encoding=&#8217;utf-8&#8242;, errors=&#8217;strict&#8217;) -&gt; bytes Bytes Decode: decode(&#8230;) method of builtins.bytes instance B.decode(encoding=&#8217;utf-8&#8242;, errors=&#8217;strict&#8217;) -&gt; str &nbsp; While doing Python 2.7 to <a href=\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":86,"featured_media":45511,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5610,1267,5613,5614,5612,5611],"class_list":["post-99521","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-encode-and-decode-in-python","tag-odoo","tag-python3","tag-str-and-byte","tag-strgin-to-byte-conversion-in-python3","tag-typeerror-a-bytes-like-object-is-required"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Performing String and Bytes Data Conversion in Python3.x - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Performing String and Bytes Data Conversion in Python3.x - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In Python 3.5 String and Bytes are not same as in Python2.7, the manual conversion between them need to do using and encode&lt;==&gt; decode method. String===&gt;(encode)==&gt;Byte===&gt;(decode)==&gt;String &nbsp; String Encode: encode(&#8230;) method of builtins.str instance S.encode(encoding=&#8217;utf-8&#8242;, errors=&#8217;strict&#8217;) -&gt; bytes Bytes Decode: decode(&#8230;) method of builtins.bytes instance B.decode(encoding=&#8217;utf-8&#8242;, errors=&#8217;strict&#8217;) -&gt; str &nbsp; While doing Python 2.7 to [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-10-14T13:35:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-10-01T11:37:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Odoo-Code-Snippet-banner.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Prakash Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prakash Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/\"},\"author\":{\"name\":\"Prakash Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/8b41d806aa1c7ec81f958437fac62e5b\"},\"headline\":\"Performing String and Bytes Data Conversion in Python3.x\",\"datePublished\":\"2017-10-14T13:35:31+00:00\",\"dateModified\":\"2019-10-01T11:37:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/\"},\"wordCount\":209,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Odoo-Code-Snippet-banner.png\",\"keywords\":[\"Encode and Decode in Python\",\"odoo\",\"python3\",\"str and byte\",\"Strgin to Byte Conversion in Python3\",\"TypeError: a bytes-like object is required\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/\",\"url\":\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/\",\"name\":\"Performing String and Bytes Data Conversion in Python3.x - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Odoo-Code-Snippet-banner.png\",\"datePublished\":\"2017-10-14T13:35:31+00:00\",\"dateModified\":\"2019-10-01T11:37:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Odoo-Code-Snippet-banner.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Odoo-Code-Snippet-banner.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Performing String and Bytes Data Conversion in Python3.x\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/8b41d806aa1c7ec81f958437fac62e5b\",\"name\":\"Prakash Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0423ba8e78c94fb466768b44982d402aec0a1bb0ea274e7907672f740c41d776?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0423ba8e78c94fb466768b44982d402aec0a1bb0ea274e7907672f740c41d776?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Prakash Kumar\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/prakash-kumar163\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Performing String and Bytes Data Conversion in Python3.x - Webkul Blog","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:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/","og_locale":"en_US","og_type":"article","og_title":"Performing String and Bytes Data Conversion in Python3.x - Webkul Blog","og_description":"In Python 3.5 String and Bytes are not same as in Python2.7, the manual conversion between them need to do using and encode&lt;==&gt; decode method. String===&gt;(encode)==&gt;Byte===&gt;(decode)==&gt;String &nbsp; String Encode: encode(&#8230;) method of builtins.str instance S.encode(encoding=&#8217;utf-8&#8242;, errors=&#8217;strict&#8217;) -&gt; bytes Bytes Decode: decode(&#8230;) method of builtins.bytes instance B.decode(encoding=&#8217;utf-8&#8242;, errors=&#8217;strict&#8217;) -&gt; str &nbsp; While doing Python 2.7 to [...]","og_url":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-10-14T13:35:31+00:00","article_modified_time":"2019-10-01T11:37:38+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Odoo-Code-Snippet-banner.png","type":"image\/png"}],"author":"Prakash Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Prakash Kumar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/"},"author":{"name":"Prakash Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/8b41d806aa1c7ec81f958437fac62e5b"},"headline":"Performing String and Bytes Data Conversion in Python3.x","datePublished":"2017-10-14T13:35:31+00:00","dateModified":"2019-10-01T11:37:38+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/"},"wordCount":209,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Odoo-Code-Snippet-banner.png","keywords":["Encode and Decode in Python","odoo","python3","str and byte","Strgin to Byte Conversion in Python3","TypeError: a bytes-like object is required"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/","url":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/","name":"Performing String and Bytes Data Conversion in Python3.x - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Odoo-Code-Snippet-banner.png","datePublished":"2017-10-14T13:35:31+00:00","dateModified":"2019-10-01T11:37:38+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Odoo-Code-Snippet-banner.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Odoo-Code-Snippet-banner.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/string-and-bytes-conversion-in-python3-x\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Performing String and Bytes Data Conversion in Python3.x"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/8b41d806aa1c7ec81f958437fac62e5b","name":"Prakash Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0423ba8e78c94fb466768b44982d402aec0a1bb0ea274e7907672f740c41d776?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0423ba8e78c94fb466768b44982d402aec0a1bb0ea274e7907672f740c41d776?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Prakash Kumar"},"url":"https:\/\/webkul.com\/blog\/author\/prakash-kumar163\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/99521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/86"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=99521"}],"version-history":[{"count":47,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/99521\/revisions"}],"predecessor-version":[{"id":200907,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/99521\/revisions\/200907"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/45511"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=99521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=99521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=99521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}