{"id":552,"date":"2022-11-04T09:22:54","date_gmt":"2022-11-04T09:22:54","guid":{"rendered":"https:\/\/www.devopstrainer.in\/blog\/?p=552"},"modified":"2022-11-04T09:22:54","modified_gmt":"2022-11-04T09:22:54","slug":"how-to-convert-a-json-string-to-an-array-in-php-explain-with-example","status":"publish","type":"post","link":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/","title":{"rendered":"How to convert a JSON string to an array in PHP? explain with example"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/json-string-to-array-php.png\" alt=\"\" class=\"wp-image-554\" width=\"774\" height=\"436\" srcset=\"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/json-string-to-array-php.png 800w, https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/json-string-to-array-php-300x169.png 300w, https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/json-string-to-array-php-768x432.png 768w, https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/json-string-to-array-php-678x381.png 678w\" sizes=\"auto, (max-width: 774px) 100vw, 774px\" \/><figcaption><strong><em>JSON String to an Array in PHP<\/em><\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p>In this Query, we will see How to convert a JSON string to an array in PHP, &amp; will see its implementation through examples.<\/p>\n\n\n\n<p>There are three types of arrays in PHP that are listed below:<\/p>\n\n\n\n<p><strong>Indexed Array<\/strong>: It is an array with a numeric key. It is basically an array wherein each of the keys is associated with its own specific value.<br><strong>Associative Array<\/strong>: It is used to store key-value pairs.<br><strong>Multidimensional Array<\/strong>: It is a type of array which stores another array at each index instead of a single element. In other words, define multi-dimensional arrays as arrays of arrays. For this purpose, we will use an associative array that uses a key-value type structure for storing data. These keys will be a string or an integer which will be used as an index to search the corresponding value in the array.<br>The json_encode() function is used to convert the value of the array into JSON. This function is added in from PHP5. Also, you can make more nesting of arrays as per your requirement. You can also create an array of array of objects with this function. As in JSON, everything is stored as a key-value pair we will convert these key-value pairs of PHP arrays to JSON which can be used to send the response from the REST API server.<\/p>\n\n\n\n<p>Example: The below example is to convert an array into JSON.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\r\n  \r\n  $arr = array (\r\n  \r\n      \/\/ Every array will be converted\r\n      \/\/ to an object\r\n      array(\r\n          \"name\" => \"Pranav Sharma\",\r\n          \"age\" => \"21\"\r\n      ),\r\n      array(\r\n          \"name\" => \"Rohit Mehta\",\r\n          \"age\" => \"20\"\r\n      ),\r\n      array(\r\n          \"name\" => \"Arpita Agarwal\",\r\n          \"age\" => \"21\"\r\n      )\r\n  );\r\n  \r\n  \/\/ Function to convert array into JSON\r\n  echo json_encode($arr);\r\n?><\/code><\/pre>\n\n\n\n<p>Output:<\/p>\n\n\n\n<p>[{&#8220;name&#8221;:&#8221;Pranav Sharma&#8221;,&#8221;age&#8221;:&#8221;21&#8243;},<br>{&#8220;name&#8221;:&#8221;Rohit Mehta&#8221;,&#8221;age&#8221;:&#8221;20&#8243;},<br>{&#8220;name&#8221;:&#8221;Arpita Agarwal&#8221;,&#8221;age&#8221;:&#8221;21&#8243;}]<\/p>\n\n\n\n<p>Example: This example depicts the conversion of the 2D associative array into JSON.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\r\n  \r\n\r\n  $arr = array (\r\n      \"first\"=>array(\r\n          \"id\"=>1,\r\n          \"product_name\"=>\"Circuitboard\",\r\n          \"cost\"=>200\r\n      ),\r\n      \"second\"=>array(\r\n          \"id\"=>2,\r\n          \"product_name\"=>\"Tiffin\",\r\n          \"cost\"=>98\r\n      ),\r\n      \"third\"=>array(\r\n          \"id\"=>3,\r\n          \"product_name\"=>\"Air Conditioner\",\r\n          \"cost\"=>8000\r\n      )\r\n  );\r\n  \r\n  \/\/ Function to convert array into JSON\r\n  echo json_encode($arr);\r\n?><\/code><\/pre>\n\n\n\n<p>Output:<\/p>\n\n\n\n<p>{&#8220;first&#8221;:{&#8220;id&#8221;:1,&#8221;product_name&#8221;:&#8221;Circuitboard&#8221;,&#8221;cost&#8221;:200},<br>&#8220;second&#8221;:{&#8220;id&#8221;:2,&#8221;product_name&#8221;:&#8221;Tiffin&#8221;,&#8221;cost&#8221;:98},<br>&#8220;third&#8221;:{&#8220;id&#8221;:3,&#8221;product_name&#8221;:&#8221;Air Conditioner&#8221;,&#8221;cost&#8221;:8000}}<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this Query, we will see How to convert a JSON string to an array in PHP, &amp; will see its implementation through examples. There are three&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[145,230,165,246,113,193],"tags":[147,157,247,182,154,248],"class_list":["post-552","post","type-post","status-publish","format-standard","hentry","category-array","category-elements","category-function","category-json-string","category-php","category-php-array","tag-array-in-php","tag-associative-array","tag-convert-a-json-string-to-an-array","tag-json_encode-function","tag-multidimensional-array","tag-types-of-arrays-in-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to convert a JSON string to an array in PHP? explain with example - DevOps | SRE | DevSecOps<\/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:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to convert a JSON string to an array in PHP? explain with example - DevOps | SRE | DevSecOps\" \/>\n<meta property=\"og:description\" content=\"In this Query, we will see How to convert a JSON string to an array in PHP, &amp; will see its implementation through examples. There are three...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps | SRE | DevSecOps\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-04T09:22:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/json-string-to-array-php.png\" \/>\n<meta name=\"author\" content=\"rahulkr kr\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rahulkr kr\" \/>\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.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/\"},\"author\":{\"name\":\"rahulkr kr\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#\\\/schema\\\/person\\\/e9fd1d88de76754aa189257cd197394d\"},\"headline\":\"How to convert a JSON string to an array in PHP? explain with example\",\"datePublished\":\"2022-11-04T09:22:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/\"},\"wordCount\":303,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/json-string-to-array-php.png\",\"keywords\":[\"Array in PHP\",\"Associative Array\",\"convert a JSON string to an array\",\"json_encode() Function\",\"multidimensional array\",\"types of arrays in PHP\"],\"articleSection\":[\"Array\",\"Elements\",\"Function\",\"JSON string\",\"PHP\",\"PHP Array\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/\",\"url\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/\",\"name\":\"How to convert a JSON string to an array in PHP? explain with example - DevOps | SRE | DevSecOps\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/json-string-to-array-php.png\",\"datePublished\":\"2022-11-04T09:22:54+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#\\\/schema\\\/person\\\/e9fd1d88de76754aa189257cd197394d\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/json-string-to-array-php.png\",\"contentUrl\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/json-string-to-array-php.png\",\"width\":800,\"height\":450},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to convert a JSON string to an array in PHP? explain with example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/\",\"name\":\"DevOps | SRE | DevSecOps\",\"description\":\"Automation means Cost, Quality, Time\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#\\\/schema\\\/person\\\/e9fd1d88de76754aa189257cd197394d\",\"name\":\"rahulkr kr\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/79531cbaf0b831cebc9631f6ac28f21fb3fb0dc2615eeecdeeec43038b513473?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/79531cbaf0b831cebc9631f6ac28f21fb3fb0dc2615eeecdeeec43038b513473?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/79531cbaf0b831cebc9631f6ac28f21fb3fb0dc2615eeecdeeec43038b513473?s=96&d=mm&r=g\",\"caption\":\"rahulkr kr\"},\"url\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/author\\\/rahulkr\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to convert a JSON string to an array in PHP? explain with example - DevOps | SRE | DevSecOps","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.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/","og_locale":"en_US","og_type":"article","og_title":"How to convert a JSON string to an array in PHP? explain with example - DevOps | SRE | DevSecOps","og_description":"In this Query, we will see How to convert a JSON string to an array in PHP, &amp; will see its implementation through examples. There are three...","og_url":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/","og_site_name":"DevOps | SRE | DevSecOps","article_published_time":"2022-11-04T09:22:54+00:00","og_image":[{"url":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/json-string-to-array-php.png","type":"","width":"","height":""}],"author":"rahulkr kr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rahulkr kr","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/#article","isPartOf":{"@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/"},"author":{"name":"rahulkr kr","@id":"https:\/\/www.devopstrainer.in\/blog\/#\/schema\/person\/e9fd1d88de76754aa189257cd197394d"},"headline":"How to convert a JSON string to an array in PHP? explain with example","datePublished":"2022-11-04T09:22:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/"},"wordCount":303,"commentCount":0,"image":{"@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/json-string-to-array-php.png","keywords":["Array in PHP","Associative Array","convert a JSON string to an array","json_encode() Function","multidimensional array","types of arrays in PHP"],"articleSection":["Array","Elements","Function","JSON string","PHP","PHP Array"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/","url":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/","name":"How to convert a JSON string to an array in PHP? explain with example - DevOps | SRE | DevSecOps","isPartOf":{"@id":"https:\/\/www.devopstrainer.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/#primaryimage"},"image":{"@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/json-string-to-array-php.png","datePublished":"2022-11-04T09:22:54+00:00","author":{"@id":"https:\/\/www.devopstrainer.in\/blog\/#\/schema\/person\/e9fd1d88de76754aa189257cd197394d"},"breadcrumb":{"@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/#primaryimage","url":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/json-string-to-array-php.png","contentUrl":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/json-string-to-array-php.png","width":800,"height":450},{"@type":"BreadcrumbList","@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-convert-a-json-string-to-an-array-in-php-explain-with-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.devopstrainer.in\/blog\/"},{"@type":"ListItem","position":2,"name":"How to convert a JSON string to an array in PHP? explain with example"}]},{"@type":"WebSite","@id":"https:\/\/www.devopstrainer.in\/blog\/#website","url":"https:\/\/www.devopstrainer.in\/blog\/","name":"DevOps | SRE | DevSecOps","description":"Automation means Cost, Quality, Time","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.devopstrainer.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.devopstrainer.in\/blog\/#\/schema\/person\/e9fd1d88de76754aa189257cd197394d","name":"rahulkr kr","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/79531cbaf0b831cebc9631f6ac28f21fb3fb0dc2615eeecdeeec43038b513473?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/79531cbaf0b831cebc9631f6ac28f21fb3fb0dc2615eeecdeeec43038b513473?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/79531cbaf0b831cebc9631f6ac28f21fb3fb0dc2615eeecdeeec43038b513473?s=96&d=mm&r=g","caption":"rahulkr kr"},"url":"https:\/\/www.devopstrainer.in\/blog\/author\/rahulkr\/"}]}},"_links":{"self":[{"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/posts\/552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/comments?post=552"}],"version-history":[{"count":2,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/posts\/552\/revisions"}],"predecessor-version":[{"id":555,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/posts\/552\/revisions\/555"}],"wp:attachment":[{"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/media?parent=552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/categories?post=552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/tags?post=552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}