{"id":29389,"date":"2017-03-06T20:01:59","date_gmt":"2017-03-06T12:01:59","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=29389"},"modified":"2017-12-09T19:56:53","modified_gmt":"2017-12-09T11:56:53","slug":"cleave-js","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/","title":{"rendered":"Format Input Fields Automatically with Cleave.js"},"content":{"rendered":"<p>Think about all the different input fields that <strong>require a formatted structure<\/strong>. Phone numbers, credit cards, birth dates, street addresses\u2026 they all have their <strong>own unique patterns<\/strong>.<\/p>\n<p>It\u2019s easy enough to leave these fields alone and trust the user. But it might be better to use <strong><a target=\"_blank\" href=\"https:\/\/nosir.github.io\/cleave.js\/\">Cleave.js<\/a><\/strong>, a <strong>free vanilla JavaScript plugin<\/strong> to help you <strong>automatically format input fields<\/strong>.<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/form-ux-design-tips\/\">4 Form Design UX Tips You Should Know (With Examples)<\/a>\n\t\t\t\t<\/p>\n<figure><a target=\"_blank\" href=\"https:\/\/nosir.github.io\/cleave.js\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/cleave-js\/01-cleave-js-plugin-demo.jpg\" alt=\"cleave.js inputs\" width=\"800\" height=\"569\"><\/a><\/figure>\n<p>HTML5 comes with its <strong>own set of inputs related to data patterns<\/strong> such as telephone numbers. With Cleave, you can take this to the next level with <strong>customized inputs<\/strong> that <strong>automatically format text<\/strong> as it\u2019s typed.<\/p>\n<p>By default, the plugin supports <strong>five basic text patterns<\/strong>:<\/p>\n<ol>\n<li>Credit card numbers<\/li>\n<li>Phone numbers<\/li>\n<li>Dates<\/li>\n<li>Numeric styling (with commas)<\/li>\n<li>Custom input fields<\/li>\n<\/ol>\n<p>That last choice is the coolest one because you can make your <strong>own custom data patterns from scratch<\/strong>. Cleave doesn\u2019t force you to follow any strict methodology.<\/p>\n<p>Instead, it gives you the tools to <strong>build your own inputs<\/strong> with <strong>optional support for React and Angular components<\/strong>. It also supports <strong>all major browsers<\/strong> and should match support for <strong>legacy browsers<\/strong> along with <strong>jQuery<\/strong>.<\/p>\n<figure><a target=\"_blank\" href=\"https:\/\/nosir.github.io\/cleave.js\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/cleave-js\/02-cleavejs-custom-options.jpg\" alt=\"cleavejs custom options\" width=\"800\" height=\"796\"><\/a><\/figure>\n<p>Note this isn\u2019t a tough plugin to set up. You <strong>target whatever ID or class you have<\/strong> on your input field and <strong>pass that into a new Cleave instance<\/strong>. Here\u2019s a sample snippet:<\/p>\n<pre>\r\nvar cleave = new Cleave('.input-phone', {\r\n    phone: true,\r\n    phoneRegionCode: '{country}'\r\n});\r\n<\/pre>\n<p>However, while Cleave may be easy to set up, it has <strong>a lot of custom features<\/strong> you can toy with.<\/p>\n<p>All of the documentation is <strong>hosted <a target=\"_blank\" href=\"https:\/\/github.com\/nosir\/cleave.js\/blob\/master\/doc\/js-api.md\">inside the repo<\/a><\/strong>, so you\u2019ll need to browse the GitHub page to <strong>find all the different methods & options<\/strong>. Specifically, the <strong><a target=\"_blank\" href=\"https:\/\/github.com\/nosir\/cleave.js\/blob\/master\/doc\/options.md\">options page<\/a><\/strong> has a lot to go through and might take a while to find what you want.<\/p>\n<p>Thankfully, Cleave has <strong>plenty of live examples<\/strong> you can study and replicate. These examples are also <strong>free to download<\/strong> <a target=\"_blank\" href=\"https:\/\/github.com\/nosir\/cleave.js\">from the GitHub repo<\/a>. If you want to see <strong>more live examples<\/strong> visit the <strong><a target=\"_blank\" href=\"https:\/\/nosir.github.io\/cleave.js\/\">Cleave.js home page<\/a><\/strong> or check out <strong><a target=\"_blank\" href=\"https:\/\/jsfiddle.net\/nosir\/aLnhdf3z\/\">this fiddle<\/a><\/strong> jam-packed with demos.<\/p>\n<p><iframe loading=\"lazy\" width=\"100%\" height=\"300\" src=\"https:\/\/jsfiddle.net\/nosir\/aLnhdf3z\/embedded\/\" allowfullscreen=\"allowfullscreen\" frameborder=\"0\"><\/iframe><\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/html5-constraint-validation\/\">Intro Into HTML5 Constraint Validation<\/a>\n\t\t\t\t<\/p>","protected":false},"excerpt":{"rendered":"<p>Think about all the different input fields that require a formatted structure. Phone numbers, credit cards, birth dates, street addresses\u2026 they all have their own unique patterns. It\u2019s easy enough to leave these fields alone and trust the user. But it might be better to use Cleave.js, a free vanilla JavaScript plugin to help you&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[352],"tags":[3497],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Format Input Fields Automatically with Cleave.js - Hongkiat<\/title>\n<meta name=\"description\" content=\"Think about all the different input fields that require a formatted structure. Phone numbers, credit cards, birth dates, street addresses... they all have\" \/>\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.hongkiat.com\/blog\/cleave-js\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Format Input Fields Automatically with Cleave.js\" \/>\n<meta property=\"og:description\" content=\"Think about all the different input fields that require a formatted structure. Phone numbers, credit cards, birth dates, street addresses... they all have\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/cleave-js\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2017-03-06T12:01:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-09T11:56:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/cleave-js\/01-cleave-js-plugin-demo.jpg\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Format Input Fields Automatically with Cleave.js\",\"datePublished\":\"2017-03-06T12:01:59+00:00\",\"dateModified\":\"2017-12-09T11:56:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/\"},\"wordCount\":337,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/cleave-js\\\/01-cleave-js-plugin-demo.jpg\",\"keywords\":[\"Javascript Library\"],\"articleSection\":[\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/\",\"name\":\"Format Input Fields Automatically with Cleave.js - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/cleave-js\\\/01-cleave-js-plugin-demo.jpg\",\"datePublished\":\"2017-03-06T12:01:59+00:00\",\"dateModified\":\"2017-12-09T11:56:53+00:00\",\"description\":\"Think about all the different input fields that require a formatted structure. Phone numbers, credit cards, birth dates, street addresses... they all have\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/cleave-js\\\/01-cleave-js-plugin-demo.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/cleave-js\\\/01-cleave-js-plugin-demo.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/cleave-js\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Format Input Fields Automatically with Cleave.js\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Format Input Fields Automatically with Cleave.js - Hongkiat","description":"Think about all the different input fields that require a formatted structure. Phone numbers, credit cards, birth dates, street addresses... they all have","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.hongkiat.com\/blog\/cleave-js\/","og_locale":"en_US","og_type":"article","og_title":"Format Input Fields Automatically with Cleave.js","og_description":"Think about all the different input fields that require a formatted structure. Phone numbers, credit cards, birth dates, street addresses... they all have","og_url":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2017-03-06T12:01:59+00:00","article_modified_time":"2017-12-09T11:56:53+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/cleave-js\/01-cleave-js-plugin-demo.jpg","type":"","width":"","height":""}],"author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Format Input Fields Automatically with Cleave.js","datePublished":"2017-03-06T12:01:59+00:00","dateModified":"2017-12-09T11:56:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/"},"wordCount":337,"commentCount":0,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/cleave-js\/01-cleave-js-plugin-demo.jpg","keywords":["Javascript Library"],"articleSection":["Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/cleave-js\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/","url":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/","name":"Format Input Fields Automatically with Cleave.js - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/cleave-js\/01-cleave-js-plugin-demo.jpg","datePublished":"2017-03-06T12:01:59+00:00","dateModified":"2017-12-09T11:56:53+00:00","description":"Think about all the different input fields that require a formatted structure. Phone numbers, credit cards, birth dates, street addresses... they all have","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/cleave-js\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/cleave-js\/01-cleave-js-plugin-demo.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/cleave-js\/01-cleave-js-plugin-demo.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/cleave-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Format Input Fields Automatically with Cleave.js"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-7E1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=29389"}],"version-history":[{"count":2,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29389\/revisions"}],"predecessor-version":[{"id":42335,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29389\/revisions\/42335"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=29389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=29389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=29389"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=29389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}