{"id":85997,"date":"2017-06-09T15:41:38","date_gmt":"2017-06-09T15:41:38","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=85997"},"modified":"2017-06-09T15:41:38","modified_gmt":"2017-06-09T15:41:38","slug":"understanding-currying-javascript","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/","title":{"rendered":"Understanding currying in javascript"},"content":{"rendered":"<p>Simply speaking, currying in javascript enhances the reusability of functional code with multiple arguments. It is used to transform your function to one or more arguments. Let us understand with one simple example first.<\/p>\n<p>Normal javascript (not using currying):<\/p>\n<pre class=\"brush:js\">\/**\r\n * Webkul Software.\r\n *\r\n * @category Webkul\r\n * @package JavaScript Concepts\r\n * @author Webkul\r\n * @copyright Copyright (c) 2010-2017 Webkul Software Private Limited (https:\/\/webkul.com)\r\n * @license https:\/\/store.webkul.com\/license.html\r\n *\/\r\nvar set = function (header, site) {\r\n  console.log(header + ' ' + site);\r\n}\r\n\r\nset('visit', 'webkul.com'); \/\/ visit webkul.com\r\nset('visit', 'store.webkul.com'); \/\/ visit store.webkul.com<\/pre>\n<p>Now using currying:<\/p>\n<pre class=\"brush:js\">\/**\r\n * Webkul Software.\r\n *\r\n * @category Webkul\r\n * @package JavaScript Concepts\r\n * @author Webkul\r\n * @copyright Copyright (c) 2010-2017 Webkul Software Private Limited (https:\/\/webkul.com)\r\n * @license https:\/\/store.webkul.com\/license.html\r\n *\/\r\nvar set = function (header) {\r\n  return function (site) {\r\n    console.log(header + ' ' + site);\r\n  }\r\n}\r\n\r\nvar visit = set('visit');\r\nvisit('webkul.com'); \/\/ visit webkul.com\r\nvisit('store.webkul.com'); \/\/ visit store.webkul.com<\/pre>\n<p>Here, in this example, we have passed an argument first and using that variable for passing the further argument.<\/p>\n<p>Now, I&#8217;m providing a better example in which\u00a0currying is used to a bit more extent and it will also help you understand it better. Here, I&#8217;m providing an example for the formatting of currency.<\/p>\n<p>First, I&#8217;m providing an example without using currying.<\/p>\n<pre class=\"brush:js\">\/**\r\n * Webkul Software.\r\n *\r\n * @category Webkul\r\n * @package JavaScript Concepts\r\n * @author Webkul\r\n * @copyright Copyright (c) 2010-2017 Webkul Software Private Limited (https:\/\/webkul.com)\r\n * @license https:\/\/store.webkul.com\/license.html\r\n *\/\r\nvar format = function (symbol_place, currency, decimal, value) {\r\n  if (!decimal) {\r\n    decimal = 2; \/\/ if decimal in not provided\r\n  }\r\n  if (symbol_place == 'left') {\r\n    return currency + parseFloat(value).toFixed(decimal);\r\n  } else {\r\n    return parseFloat(value).toFixed(decimal) + currency;\r\n  }\r\n}\r\n\r\nvar currency_format1 = format('left', '$', 2, '50.4343');\r\nconsole.log(currency_format1); \/\/ $50.43\r\nvar currency_format2 = format('left', '$', 4, '50.4343');\r\nconsole.log(currency_format2); \/\/ $50.4343\r\nvar currency_format3 = format('left', '\u00a3', 2, '50.4343');\r\nconsole.log(currency_format3); \/\/ \u00a350.43\r\nvar currency_format4 = format('right', '\u20ac', 2, '50.4343');\r\nconsole.log(currency_format4); \/\/ 50.43\u20ac<\/pre>\n<p>Now, the same has been done after applying currying.<\/p>\n<pre class=\"brush:js\">\/**\r\n * Webkul Software.\r\n *\r\n * @category Webkul\r\n * @package JavaScript Concepts\r\n * @author Webkul\r\n * @copyright Copyright (c) 2010-2017 Webkul Software Private Limited (https:\/\/webkul.com)\r\n * @license https:\/\/store.webkul.com\/license.html\r\n *\/\r\nvar format = function (symbol_place) {\r\n  return function (currency) {\r\n    return function (decimal) {\r\n      return function (value) {\r\n        if (!decimal) {\r\n          decimal = 2; \/\/ if decimal is not provided\r\n        }\r\n        if (symbol_place == 'left') {\r\n          return currency + parseFloat(value).toFixed(decimal);\r\n        } else {\r\n          return parseFloat(value).toFixed(decimal) + currency;\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\nvar currency_left = format('left');\r\nvar currency_right = format('right');\r\n\r\nvar usd = currency_left('$');\r\nvar pound = currency_left('\u00a3');\r\n\r\nvar usd_decimal2 = usd(2);\r\nvar usd_decimal4 = usd(4);\r\nvar pound_decimal2 = pound(2);\r\n\r\nconsole.log(usd_decimal2('50.4343')); \/\/ $50.43\r\nconsole.log(usd_decimal4('50.4343')); \/\/ $50.4343\r\nconsole.log(pound_decimal2('50.4343')); \/\/ \u00a350.43\r\n\r\nvar currency_format = format('right')('\u20ac')()('50.4343');\/\/ we can pass empty arguments as well\r\nconsole.log(currency_format); \/\/ 50.43\u20ac<\/pre>\n<p>Here, you have noted that we have made a better use of functional code by using it for multiple\u00a0cases. You can do a lot more with the currying. Hope, this blog helps you to learn something about currying.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simply speaking, currying in javascript enhances the reusability of functional code with multiple arguments. It is used to transform your function to one or more arguments. Let us understand with one simple example first. Normal javascript (not using currying): \/** * Webkul Software. * * @category Webkul * @package JavaScript Concepts * @author Webkul * <a href=\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":70,"featured_media":84482,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[198],"tags":[4909,4910,2064,4911],"class_list":["post-85997","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-currying","tag-functional","tag-javascript","tag-reusability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Understanding currying in javascript - 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\/understanding-currying-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding currying in javascript - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Simply speaking, currying in javascript enhances the reusability of functional code with multiple arguments. It is used to transform your function to one or more arguments. Let us understand with one simple example first. Normal javascript (not using currying): \/** * Webkul Software. * * @category Webkul * @package JavaScript Concepts * @author Webkul * [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/\" \/>\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-06-09T15:41:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.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=\"Vikhyat Sharma\" \/>\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=\"Vikhyat Sharma\" \/>\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:\/\/webkul.com\/blog\/understanding-currying-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/\"},\"author\":{\"name\":\"Vikhyat Sharma\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/af7160d2546c64a1856ab1b5ce77d9b0\"},\"headline\":\"Understanding currying in javascript\",\"datePublished\":\"2017-06-09T15:41:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/\"},\"wordCount\":156,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png\",\"keywords\":[\"currying\",\"functional\",\"JavaScript\",\"reusability\"],\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/\",\"url\":\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/\",\"name\":\"Understanding currying in javascript - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png\",\"datePublished\":\"2017-06-09T15:41:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png\",\"width\":\"825\",\"height\":\"260\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding currying in javascript\"}]},{\"@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\/af7160d2546c64a1856ab1b5ce77d9b0\",\"name\":\"Vikhyat Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?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\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Vikhyat Sharma\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/vikhyat-sharma83\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding currying in javascript - 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\/understanding-currying-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Understanding currying in javascript - Webkul Blog","og_description":"Simply speaking, currying in javascript enhances the reusability of functional code with multiple arguments. It is used to transform your function to one or more arguments. Let us understand with one simple example first. Normal javascript (not using currying): \/** * Webkul Software. * * @category Webkul * @package JavaScript Concepts * @author Webkul * [...]","og_url":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-06-09T15:41:38+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png","type":"image\/png"}],"author":"Vikhyat Sharma","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Vikhyat Sharma","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/"},"author":{"name":"Vikhyat Sharma","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/af7160d2546c64a1856ab1b5ce77d9b0"},"headline":"Understanding currying in javascript","datePublished":"2017-06-09T15:41:38+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/"},"wordCount":156,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png","keywords":["currying","functional","JavaScript","reusability"],"articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/","url":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/","name":"Understanding currying in javascript - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png","datePublished":"2017-06-09T15:41:38+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/understanding-currying-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png","width":"825","height":"260"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/understanding-currying-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Understanding currying in javascript"}]},{"@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\/af7160d2546c64a1856ab1b5ce77d9b0","name":"Vikhyat Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?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\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Vikhyat Sharma"},"url":"https:\/\/webkul.com\/blog\/author\/vikhyat-sharma83\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/85997","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\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=85997"}],"version-history":[{"count":1,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/85997\/revisions"}],"predecessor-version":[{"id":86016,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/85997\/revisions\/86016"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/84482"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=85997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=85997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=85997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}