{"id":69479,"date":"2022-04-20T08:34:23","date_gmt":"2022-04-20T06:34:23","guid":{"rendered":"https:\/\/drafts.code-maze.com\/?p=69467"},"modified":"2022-04-20T08:34:23","modified_gmt":"2022-04-20T06:34:23","slug":"csharp-json-deserialization-poco-class","status":"publish","type":"post","link":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/","title":{"rendered":"JSON Deserialization to a POCO Class in C#"},"content":{"rendered":"<p>Deserialization is the process of taking a string representation of an object and creating that object in memory. JSON is an ever-increasingly popular format to serialize objects into. It has become nearly ubiquitous in API communication. In this article, we will take a look at two ways to execute the JSON deserialization to a POCO class in C# using <code>System.Text.Json<\/code> and <code>Newtonsoft.Json<\/code> libraries.<\/p>\n<div style=\"padding: 20px; border-left: 5px #dc2323 solid; display: block; margin-bottom: 20px; box-shadow: 1px 1px 5px 0px lightgrey;\">To download the source code for this article, you can visit our <a href=\"https:\/\/github.com\/CodeMazeBlog\/CodeMazeGuides\/tree\/main\/json-csharp\/DeserializeJsonToPocoClass\" target=\"_blank\" rel=\"nofollow noopener\">GitHub repository<\/a>.<\/div>\n<p>Let&#8217;s start.<\/p>\n<h2>Deserialize JSON to a POCO Class<\/h2>\n<p>In the next sections, we will take a look at how we can deserialize a JSON string into an instance of a POCO class object.\u00a0<\/p>\n<h3>JSON Deserialization to a POCO Class With System.Text.Json<\/h3>\n<p>First, let&#8217;s take a look at deserializing with the .NET <code>System.Text.Json<\/code> library. This library is standard with .NET and all we need to do to be able to use it is to add <code>using System.Text.Json;<\/code> to the file we are working with.<\/p>\n<p>Let&#8217;s start by defining a JSON object in a file:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">\/\/ JSON\/HondaCivic.json\r\n{\r\n  \"make\": \"Honda\",\r\n  \"model\": \"Civic\",\r\n  \"year\": 2015,\r\n  \"features\": [\r\n    \"ABS\",\r\n    \"Automatic locks\",\r\n    \"Power windows\"\r\n  ]\r\n}<\/pre>\n<p>Now that we have a serialized object in JSON, we can deserialize it into our POCO <code>Car<\/code> class:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">using System.Text.Json.Serialization;\r\n\r\npublic class Car\r\n{\r\n   [JsonPropertyName(\"make\")]\r\n   public string Make { get; set; } = default!;\r\n   [JsonPropertyName(\"model\")]\r\n   public string Model { get; set; } = default!;\r\n   [JsonPropertyName(\"year\")]\r\n   public int Year { get; set; } = default!;\r\n   [JsonPropertyName(\"features\")]\r\n   public IEnumerable&lt;string&gt; Features { get; set; } = default!;\r\n}<\/pre>\n<p>In this class, we create class members to match the fields in the expected JSON object we are trying to deserialize. Additionally, we decorate the properties with the <code>JsonPropertyName()<\/code> attribute. This attribute is only required for <code>System.Text.Json<\/code>, we don\u2019t have to use it with <code>Newtonsoft.Json<\/code>.<\/p>\n<p>Next, let&#8217;s modify the <code>Program<\/code> class:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">public static void Main()\r\n{\r\n   \/\/ Read JSON file. This could also be a DB or API response.\r\n   var jsonStr = File.ReadAllText(\"JSON\/HondaCivic.json\");\r\n\r\n   \/\/ Deserialize to get an object of type Car\r\n   DeserializedJsonCar = JsonSerializer.Deserialize&lt;Car&gt;(jsonStr)!;\r\n}<\/pre>\n<p>We read JSON from a file using the <code>ReadAllText<\/code> method, and deserialize it to the <code>DeserializeJsonCar<\/code> property using the <code>JsonSerializer.Deserialize<\/code> method. Note that the source of the JSON can be more than a text file. JSON can come from a database or an API response.<\/p>\n<p>That&#8217;s it, we are done! We have recovered the state of the <code>Car<\/code> in the JSON file by deserializing the JSON into an object in memory.<\/p>\n<div style=\"padding: 20px; border-left: 5px gray solid; display: block; margin-bottom: 20px; box-shadow: 1px 1px 5px 0px lightgrey;\">In this article, we deserialize a simple JSON object. But if you want to learn more about the complex deserialization, you can read this <a href=\"https:\/\/code-maze.com\/csharp-deserialize-complex-json-object\" target=\"_blank\" rel=\"noopener\">article<\/a><\/div>\n<h3>JSON Deserialization to a POCO Class With Newtonsoft.Json<\/h3>\n<p>Next, we are going to take a look at the same example but this time we will use <code>Newtonsoft.Json<\/code>. <a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/standard\/serialization\/system-text-json-migrate-from-newtonsoft-how-to?pivots=dotnet-6-0#differences-in-default-jsonserializer-behavior-compared-to-newtonsoftjson\" target=\"_blank\" rel=\"nofollow noopener\">This article<\/a> explains the difference between these two libraries in greater detail.<\/p>\n<p>First, let&#8217;s bring in <code>Newtonsoft.Json<\/code> as a dependency. We can do this by installing the <code>Newtonsoft.Json<\/code> NuGet package via the Visual Studio NuGet Package Manager Console:<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">Install-Package Newtonsoft.Json<\/code><\/p>\n<p>Once this dependency is installed we can import <code>Newtonsoft.Json<\/code> into our code.<\/p>\n<p>Now, we are ready to deserialize our JSON object into a <code>Car<\/code> object:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">public static void Main()\r\n{\r\n    var jsonStr = File.ReadAllText(\"JSON\/HondaCivic.json\");\r\n\r\n    NewtonsoftDeserializedJsonCar = JsonConvert.DeserializeObject&lt;Car&gt;(jsonStr)!;\r\n}<\/pre>\n<p>We can see that the process with <code>Newtonsoft.Json<\/code> is quite similar to the one with <code>System.Text.Json<\/code>. Just, in this case, we are using the <code>JsonConvert<\/code> class to call the <code>Deserialize<\/code> method.<\/p>\n<h2>Conclusion<\/h2>\n<p>In summary, we have covered two options to deserialize JSON into a POCO class in C#. Even though we&#8217;ve deserialized JSON from a file, the source of the JSON can also be a database or API. Using JSON is a great way to transfer data from the backend to a web app or desktop application. Moreover, we can keep the state of the object intact.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deserialization is the process of taking a string representation of an object and creating that object in memory. JSON is an ever-increasingly popular format to serialize objects into. It has become nearly ubiquitous in API communication. In this article, we will take a look at two ways to execute the JSON deserialization to a POCO [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":62189,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[12],"tags":[929,1217,927,1157,1158],"class_list":["post-69479","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-csharp","tag-deserialization","tag-deserialize-json-to-a-poco","tag-json","tag-newtonsoft-json","tag-system-text-json","et-has-post-format-content","et_post_format-et-post-format-standard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JSON Deserialization to a POCO Class in C# - Code Maze<\/title>\n<meta name=\"description\" content=\"In this article, we will learn how to execute JSON deserialization to a POCO class in C# with two different libraries.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JSON Deserialization to a POCO Class in C# - Code Maze\" \/>\n<meta property=\"og:description\" content=\"In this article, we will learn how to execute JSON deserialization to a POCO class in C# with two different libraries.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/\" \/>\n<meta property=\"og:site_name\" content=\"Code Maze\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-20T06:34:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"620\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Code Maze\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/CodeMazeBlog\" \/>\n<meta name=\"twitter:site\" content=\"@CodeMazeBlog\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Code Maze\" \/>\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\",\"BlogPosting\"],\"@id\":\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/\"},\"author\":{\"name\":\"Code Maze\",\"@id\":\"https:\/\/code-maze.com\/#\/schema\/person\/09d29b223012c8e94a68ba62861d0b04\"},\"headline\":\"JSON Deserialization to a POCO Class in C#\",\"datePublished\":\"2022-04-20T06:34:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/\"},\"wordCount\":524,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/code-maze.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png\",\"keywords\":[\"Deserialization\",\"Deserialize JSON to a POCO\",\"JSON\",\"Newtonsoft.Json\",\"System.Text.Json\"],\"articleSection\":[\"C#\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/\",\"url\":\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/\",\"name\":\"JSON Deserialization to a POCO Class in C# - Code Maze\",\"isPartOf\":{\"@id\":\"https:\/\/code-maze.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png\",\"datePublished\":\"2022-04-20T06:34:23+00:00\",\"description\":\"In this article, we will learn how to execute JSON deserialization to a POCO class in C# with two different libraries.\",\"breadcrumb\":{\"@id\":\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#primaryimage\",\"url\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png\",\"contentUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png\",\"width\":1100,\"height\":620,\"caption\":\"C# Development\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/code-maze.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JSON Deserialization to a POCO Class in C#\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/code-maze.com\/#website\",\"url\":\"https:\/\/code-maze.com\/\",\"name\":\"Code Maze\",\"description\":\"Learn. Code. Succeed.\",\"publisher\":{\"@id\":\"https:\/\/code-maze.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/code-maze.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/code-maze.com\/#organization\",\"name\":\"Code Maze\",\"url\":\"https:\/\/code-maze.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/code-maze.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/Code-Maze-Only-Logo-Transparent-HRez.png\",\"contentUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/Code-Maze-Only-Logo-Transparent-HRez.png\",\"width\":3511,\"height\":3510,\"caption\":\"Code Maze\"},\"image\":{\"@id\":\"https:\/\/code-maze.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/CodeMazeBlog\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/code-maze.com\/#\/schema\/person\/09d29b223012c8e94a68ba62861d0b04\",\"name\":\"Code Maze\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/code-maze.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/Code-Maze-Only-Logo-Transparent-HRez-150x150.png\",\"contentUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/Code-Maze-Only-Logo-Transparent-HRez-150x150.png\",\"caption\":\"Code Maze\"},\"description\":\"This is the standard author on the site. Most articles are published by individual authors, with their profiles, but when several authors have contributed, we publish collectively as a part of this profile.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/codemaze\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/CodeMazeBlog\"],\"url\":\"https:\/\/code-maze.com\/author\/codemazecontributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JSON Deserialization to a POCO Class in C# - Code Maze","description":"In this article, we will learn how to execute JSON deserialization to a POCO class in C# with two different libraries.","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:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/","og_locale":"en_US","og_type":"article","og_title":"JSON Deserialization to a POCO Class in C# - Code Maze","og_description":"In this article, we will learn how to execute JSON deserialization to a POCO class in C# with two different libraries.","og_url":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/","og_site_name":"Code Maze","article_published_time":"2022-04-20T06:34:23+00:00","og_image":[{"width":1100,"height":620,"url":"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png","type":"image\/png"}],"author":"Code Maze","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/CodeMazeBlog","twitter_site":"@CodeMazeBlog","twitter_misc":{"Written by":"Code Maze","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#article","isPartOf":{"@id":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/"},"author":{"name":"Code Maze","@id":"https:\/\/code-maze.com\/#\/schema\/person\/09d29b223012c8e94a68ba62861d0b04"},"headline":"JSON Deserialization to a POCO Class in C#","datePublished":"2022-04-20T06:34:23+00:00","mainEntityOfPage":{"@id":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/"},"wordCount":524,"commentCount":0,"publisher":{"@id":"https:\/\/code-maze.com\/#organization"},"image":{"@id":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#primaryimage"},"thumbnailUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png","keywords":["Deserialization","Deserialize JSON to a POCO","JSON","Newtonsoft.Json","System.Text.Json"],"articleSection":["C#"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/","url":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/","name":"JSON Deserialization to a POCO Class in C# - Code Maze","isPartOf":{"@id":"https:\/\/code-maze.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#primaryimage"},"image":{"@id":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#primaryimage"},"thumbnailUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png","datePublished":"2022-04-20T06:34:23+00:00","description":"In this article, we will learn how to execute JSON deserialization to a POCO class in C# with two different libraries.","breadcrumb":{"@id":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#primaryimage","url":"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png","contentUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png","width":1100,"height":620,"caption":"C# Development"},{"@type":"BreadcrumbList","@id":"https:\/\/code-maze.com\/csharp-json-deserialization-poco-class\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/code-maze.com\/"},{"@type":"ListItem","position":2,"name":"JSON Deserialization to a POCO Class in C#"}]},{"@type":"WebSite","@id":"https:\/\/code-maze.com\/#website","url":"https:\/\/code-maze.com\/","name":"Code Maze","description":"Learn. Code. Succeed.","publisher":{"@id":"https:\/\/code-maze.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/code-maze.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/code-maze.com\/#organization","name":"Code Maze","url":"https:\/\/code-maze.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/code-maze.com\/#\/schema\/logo\/image\/","url":"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/Code-Maze-Only-Logo-Transparent-HRez.png","contentUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/Code-Maze-Only-Logo-Transparent-HRez.png","width":3511,"height":3510,"caption":"Code Maze"},"image":{"@id":"https:\/\/code-maze.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/CodeMazeBlog"]},{"@type":"Person","@id":"https:\/\/code-maze.com\/#\/schema\/person\/09d29b223012c8e94a68ba62861d0b04","name":"Code Maze","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/code-maze.com\/#\/schema\/person\/image\/","url":"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/Code-Maze-Only-Logo-Transparent-HRez-150x150.png","contentUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2020\/01\/Code-Maze-Only-Logo-Transparent-HRez-150x150.png","caption":"Code Maze"},"description":"This is the standard author on the site. Most articles are published by individual authors, with their profiles, but when several authors have contributed, we publish collectively as a part of this profile.","sameAs":["https:\/\/www.linkedin.com\/company\/codemaze\/","https:\/\/x.com\/https:\/\/twitter.com\/CodeMazeBlog"],"url":"https:\/\/code-maze.com\/author\/codemazecontributor\/"}]}},"_links":{"self":[{"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/posts\/69479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/comments?post=69479"}],"version-history":[{"count":4,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/posts\/69479\/revisions"}],"predecessor-version":[{"id":69495,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/posts\/69479\/revisions\/69495"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/media\/62189"}],"wp:attachment":[{"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/media?parent=69479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/categories?post=69479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/tags?post=69479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}