{"id":2521,"date":"2024-10-11T15:48:09","date_gmt":"2024-10-11T14:48:09","guid":{"rendered":"https:\/\/codeflarelimited.com\/blog\/?p=2521"},"modified":"2024-10-11T16:06:14","modified_gmt":"2024-10-11T15:06:14","slug":"javascript-function-chaining","status":"publish","type":"post","link":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/","title":{"rendered":"JavaScript Function Chaining"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>Function chaining is a powerful programming technique in JavaScript that allows multiple methods to be called on the same object sequentially in a single statement. This approach not only makes the code more readable but also helps to write concise and expressive code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Function Chaining?<\/h2>\n\n\n\n<p>Function chaining occurs when a function returns an object that has other methods available. By doing this, developers can call these methods one after the other in a chain. This is commonly seen in libraries and frameworks, such as jQuery, where chaining allows for more elegant code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example of Basic Function Chaining<\/h3>\n\n\n\n<p>Here\u2019s a simple example to illustrate function chaining in JavaScript:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">class Calculator {\n    constructor(value = 0) {\n        this.value = value;\n    }\n\n    add(num) {\n        this.value += num;\n        return this; \/\/ Return the current instance\n    }\n\n    subtract(num) {\n        this.value -= num;\n        return this; \/\/ Return the current instance\n    }\n\n    multiply(num) {\n        this.value *= num;\n        return this; \/\/ Return the current instance\n    }\n\n    getResult() {\n        return this.value;\n    }\n}\n\n\/\/ Usage\nconst result = new Calculator()\n    .add(5)\n    .subtract(2)\n    .multiply(3)\n    .getResult();\n\nconsole.log(result); \/\/ Output: 9\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">In the example above:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Method Chaining<\/strong>: Each method (<code>add<\/code>, <code>subtract<\/code>, and <code>multiply<\/code>) returns the current instance of the <code>Calculator<\/code> class using <code>return this;<\/code>. This allows the next method to be called on the same object.<\/li>\n\n\n\n<li><strong>Readable Code<\/strong>: The resulting code is easy to read and understand, showing a clear flow of operations.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Benefits of Function Chaining<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Increased Readability<\/strong>: Chaining methods together can make the code more readable, as it provides a clear, linear flow of operations.<\/li>\n\n\n\n<li><strong>Conciseness<\/strong>: It reduces the need for temporary variables and simplifies the code structure.<\/li>\n\n\n\n<li><strong>Improved Maintainability<\/strong>: Well-structured chains can be easier to modify and maintain.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Considerations for Function Chaining<\/h2>\n\n\n\n<p>While function chaining can enhance code quality, it is essential to consider the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Complexity<\/strong>: Overusing chaining can lead to complex and hard-to-debug code. Aim for balance and clarity.<\/li>\n\n\n\n<li><strong>Error Handling<\/strong>: Ensure that methods handle errors appropriately. A failure in one method could affect the entire chain.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Example with Error Handling<\/h3>\n\n\n\n<p>Here\u2019s how you can implement error handling in a chainable function:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">class SafeCalculator {\n    constructor(value = 0) {\n        this.value = value;\n    }\n\n    add(num) {\n        this.value += num;\n        return this;\n    }\n\n    subtract(num) {\n        if (this.value &lt; num) {\n            console.error(\"Cannot subtract larger number from smaller value.\");\n            return this; \/\/ Return current instance without modification\n        }\n        this.value -= num;\n        return this;\n    }\n\n    getResult() {\n        return this.value;\n    }\n}\n\n\/\/ Usage\nconst safeResult = new SafeCalculator()\n    .add(10)\n    .subtract(5)\n    .subtract(20) \/\/ This will log an error\n    .getResult();\n\nconsole.log(safeResult); \/\/ Output: 5\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>JavaScript function chaining is a valuable technique that can significantly improve code readability and maintainability. By returning the current instance from methods, developers can create elegant, fluent interfaces that streamline their code. However, it\u2019s important to use chaining judiciously to avoid complexity and maintain clear logic. With practice, you can effectively leverage function chaining to write cleaner and more efficient JavaScript code.<\/p>\n\n\n\n<p><a href=\"https:\/\/codeflarelimited.com\/blog\/essential-react-native-tips-for-developers\/\">Ten Essential React Native Tips Every Developer Must Know<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Function chaining is a powerful programming technique in JavaScript that allows multiple methods to be called on<\/p>\n","protected":false},"author":3,"featured_media":2527,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[99],"class_list":["post-2521","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-software-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript Function Chaining<\/title>\n<meta name=\"description\" content=\"Discover the power of JavaScript function chaining to enhance code readability and maintainability. Learn how to implement method chaining and explore its benefits and considerations for cleaner code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Function Chaining\" \/>\n<meta property=\"og:description\" content=\"Discover the power of JavaScript function chaining to enhance code readability and maintainability. Learn how to implement method chaining and explore its benefits and considerations for cleaner code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-11T14:48:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-11T15:06:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/10\/IMG-20241011-WA0009.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1120\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kene Samuel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/\"},\"author\":{\"name\":\"Kene Samuel\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/c501609bab46c16807eb32106074f206\"},\"headline\":\"JavaScript Function Chaining\",\"datePublished\":\"2024-10-11T14:48:09+00:00\",\"dateModified\":\"2024-10-11T15:06:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/\"},\"wordCount\":348,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/IMG-20241011-WA0009.jpg\",\"keywords\":[\"software development\"],\"articleSection\":[\"javascript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/\",\"name\":\"JavaScript Function Chaining\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/IMG-20241011-WA0009.jpg\",\"datePublished\":\"2024-10-11T14:48:09+00:00\",\"dateModified\":\"2024-10-11T15:06:14+00:00\",\"description\":\"Discover the power of JavaScript function chaining to enhance code readability and maintainability. Learn how to implement method chaining and explore its benefits and considerations for cleaner code.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/#primaryimage\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/IMG-20241011-WA0009.jpg\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/IMG-20241011-WA0009.jpg\",\"width\":1120,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript-function-chaining\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"javascript\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Function Chaining\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"name\":\"\",\"description\":\"Sustainable solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\",\"name\":\"Codeflare Limited\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"width\":1040,\"height\":263,\"caption\":\"Codeflare Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/c501609bab46c16807eb32106074f206\",\"name\":\"Kene Samuel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3e1716cd715a5b5491e1f2da373b52f2f73aeb37d268baff34719116e386d848?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3e1716cd715a5b5491e1f2da373b52f2f73aeb37d268baff34719116e386d848?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3e1716cd715a5b5491e1f2da373b52f2f73aeb37d268baff34719116e386d848?s=96&d=mm&r=g\",\"caption\":\"Kene Samuel\"},\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/author\\\/kene\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Function Chaining","description":"Discover the power of JavaScript function chaining to enhance code readability and maintainability. Learn how to implement method chaining and explore its benefits and considerations for cleaner code.","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:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Function Chaining","og_description":"Discover the power of JavaScript function chaining to enhance code readability and maintainability. Learn how to implement method chaining and explore its benefits and considerations for cleaner code.","og_url":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/","article_published_time":"2024-10-11T14:48:09+00:00","article_modified_time":"2024-10-11T15:06:14+00:00","og_image":[{"width":1120,"height":630,"url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/10\/IMG-20241011-WA0009.jpg","type":"image\/jpeg"}],"author":"Kene Samuel","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/#article","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/"},"author":{"name":"Kene Samuel","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/c501609bab46c16807eb32106074f206"},"headline":"JavaScript Function Chaining","datePublished":"2024-10-11T14:48:09+00:00","dateModified":"2024-10-11T15:06:14+00:00","mainEntityOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/"},"wordCount":348,"commentCount":0,"publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/10\/IMG-20241011-WA0009.jpg","keywords":["software development"],"articleSection":["javascript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/","url":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/","name":"JavaScript Function Chaining","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/#primaryimage"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/10\/IMG-20241011-WA0009.jpg","datePublished":"2024-10-11T14:48:09+00:00","dateModified":"2024-10-11T15:06:14+00:00","description":"Discover the power of JavaScript function chaining to enhance code readability and maintainability. Learn how to implement method chaining and explore its benefits and considerations for cleaner code.","breadcrumb":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/#primaryimage","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/10\/IMG-20241011-WA0009.jpg","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/10\/IMG-20241011-WA0009.jpg","width":1120,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/codeflarelimited.com\/blog\/javascript-function-chaining\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codeflarelimited.com\/blog\/"},{"@type":"ListItem","position":2,"name":"javascript","item":"https:\/\/codeflarelimited.com\/blog\/javascript\/"},{"@type":"ListItem","position":3,"name":"JavaScript Function Chaining"}]},{"@type":"WebSite","@id":"https:\/\/codeflarelimited.com\/blog\/#website","url":"https:\/\/codeflarelimited.com\/blog\/","name":"","description":"Sustainable solutions","publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeflarelimited.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codeflarelimited.com\/blog\/#organization","name":"Codeflare Limited","url":"https:\/\/codeflarelimited.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","width":1040,"height":263,"caption":"Codeflare Limited"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/c501609bab46c16807eb32106074f206","name":"Kene Samuel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3e1716cd715a5b5491e1f2da373b52f2f73aeb37d268baff34719116e386d848?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3e1716cd715a5b5491e1f2da373b52f2f73aeb37d268baff34719116e386d848?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3e1716cd715a5b5491e1f2da373b52f2f73aeb37d268baff34719116e386d848?s=96&d=mm&r=g","caption":"Kene Samuel"},"url":"https:\/\/codeflarelimited.com\/blog\/author\/kene\/"}]}},"jetpack_featured_media_url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/10\/IMG-20241011-WA0009.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/2521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/comments?post=2521"}],"version-history":[{"count":1,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/2521\/revisions"}],"predecessor-version":[{"id":2525,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/2521\/revisions\/2525"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media\/2527"}],"wp:attachment":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media?parent=2521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/categories?post=2521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/tags?post=2521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}