{"id":88631,"date":"2023-05-05T07:58:24","date_gmt":"2023-05-05T05:58:24","guid":{"rendered":"https:\/\/drafts.code-maze.com\/?p=88631"},"modified":"2023-06-19T19:38:44","modified_gmt":"2023-06-19T17:38:44","slug":"csharp-arraylist-vs-list","status":"publish","type":"post","link":"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/","title":{"rendered":"ArrayList and List Comparasion in C#"},"content":{"rendered":"<p>While building an application, we often encounter situations to store or retrieve objects and .NET gives plenty of storage options to do that. These options are categorized into generic and non-generic collection types. In this article, we are going to see two such storage types &#8211; ArrayList and List and compare them.<\/p>\r\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\/collections-lists\/ArrayListVsList\" target=\"_blank\" rel=\"nofollow noopener\">GitHub repository<\/a>.<\/div>\r\n<p>So, let&#8217;s start.<\/p>\r\n<h2>ArrayList and List Overview<\/h2>\r\n<p>ArrayList is a non-generic collection type that allows users to store objects of any data type and it is available under <code>System.Collections<\/code> namespace. We can learn more about ArrayList from this article: <a href=\"https:\/\/code-maze.com\/dotnet-collections-overview\/\" target=\"_blank\" rel=\"noopener\">Working With Collections in .NET<\/a><\/p>\r\n<p>On the other way, a List is a generic collection type that allows users to store objects of data type as specified by the List at the time of declaration. It is a very strongly typed collection and is available under <code>System.Collections.Generic<\/code> namespace. We also have an article on <a href=\"https:\/\/code-maze.com\/csharp-list-collection\/\" target=\"_blank\" rel=\"noopener\">List Collection in C#\u00a0<\/a> explaining the concepts in depth.<\/p>\r\n<p>Now it&#8217;s time to compare them.<\/p>\r\n<h2>Compare ArrayList and List<\/h2>\r\n<p>Let&#8217;s try to compare ArrayList and List under different categories.<\/p>\r\n<h3>Nature of Collection<\/h3>\r\n<p>By nature, ArrayList holds a <strong>heterogeneous<\/strong> collection of objects. This means that in a single instance of ArrayList, we can store objects of any data type. On the other hand, List is designed to hold just a <strong>homogeneous<\/strong> collection of objects. This means that in a single instance, we can store objects of only one data type.\u00a0<\/p>\r\n<p>Let&#8217;s see an example of ArrayList storing different object types:<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">using System.Collections;\r\n\r\nvar arrayList = new ArrayList();\r\narrayList.Add(1); \/\/ integer\r\narrayList.Add(2);\r\narrayList.Add(\"3\"); \/\/ string\r\n<\/pre>\r\n<p>And now let&#8217;s see an example on List that allows only one kind of object:<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">using System.Collections.Generic;\r\n\r\nvar list = new List&lt;int&gt;();\r\nlist.Add(1); \/\/ allows only integer values \r\nlist.Add(2);\r\nlist.Add(3);<\/pre>\r\n<h3>Error Prone<\/h3>\r\n<p>With ArrayList, we can always expect <strong>runtime errors<\/strong> while accessing collections as it stores heterogeneous objects. But List is a strongly typed collection that allows objects of the type defined as <code>T<\/code> in <code>List&lt;T&gt;<\/code>. Hence the app will throw a <strong>compile-time error<\/strong> if we ever try to store anything other than what was specified for <code>T<\/code>.<\/p>\r\n<p>Now, using the same <code>list<\/code> instance, if we try to add a string, we will face a compile error:<\/p>\r\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">list.Add(\"4\"); \/\/ Gives compile error<\/code><\/p>\r\n<h3>Boxing\/Unboxing Needs<\/h3>\r\n<p>When we use ArrayList, it often requires us to <strong>box or unbox<\/strong> the objects that we are accessing to avoid any errors. But with List, it&#8217;s never the case.\u00a0<\/p>\r\n<p>Let&#8217;s see how:<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">int sum = 0;\r\nforeach (var item in arrayList)\r\n{\r\n    sum += Convert.ToInt32(item);\r\n}\r\n Console.WriteLine($\"Sum is {sum}\");<\/pre>\r\n<p>The output will be:<\/p>\r\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">Sum is 6<\/code><\/p>\r\n<p>As we can see with ArrayList we had to convert <code>\"3\"<\/code> to<code> 3<\/code> using <code>Convert.ToInt32()<\/code> to make the computation work and avoid the runtime error.<\/p>\r\n<p>But in the case of List, we don&#8217;t need to do that:<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">int sum = 0;\r\nforeach (var item in list)\r\n{\r\n    sum += item;\r\n}\r\nConsole.WriteLine($\"Sum is {sum}\");<\/pre>\r\n<p>And the output will still be the same:<\/p>\r\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">Sum is 6<\/code><\/p>\r\n<p>As we can see the List is type-safe and we didn&#8217;t have to do any type-casting at all.<\/p>\r\n<h3>Memory Management<\/h3>\r\n<p><span style=\"font-weight: 400;\">Generally, List is more memory-efficient than ArrayList because it doesn&#8217;t have to store an object reference for every element in the collection.\u00a0<\/span><\/p>\r\n<h3>Performance Efficiency<\/h3>\r\n<p>From what we have seen so far, the List is more memory efficient than ArrayList. Also being type-safe makes it more <strong>performance efficient<\/strong> than ArrayList. The List has <strong>better API support<\/strong> and with the methods and properties it provides it makes it faster to access elements when compared to ArrayList.\u00a0 \u00a0<\/p>\r\n<h3>Usage Preferences<\/h3>\r\n<p>As we now know, ArrayList is flexible to store objects of any data type so we can use it if type safety is really not a concern. Also, if the application we&#8217;re developing is targeting a .NET framework version <strong>below<\/strong> <strong>.NET 2.0 <\/strong>we can continue to use ArrayList. However,\u00a0if we&#8217;re working on a framework <strong>equal to or above .NET 2.0,<\/strong> we can always prefer List over ArrayList for many reasons that we have seen already in previous sections.\u00a0<\/p>\r\n<h2>Recommendation When Using ArrayList and List<\/h2>\r\n<p>By now, we can already see that we can use both collections to do similar functionalities. Yet List is a newer and better version of ArrayList.<\/p>\r\n<p>As it is said &#8211; <strong>New is always better.<\/strong> The List should always be our first choice of collection for any new development. In fact, it is also suggested by Microsoft. We can use ArrayList if the application is still targeting a framework lesser than .NET 3.0 or if it&#8217;s an absolute necessity.\u00a0<\/p>\r\n<h2>Conclusion<\/h2>\r\n<p>In this article, we learned about ArrayList and List and when we use them. And it is evident that List wins over ArrayList in any comparison as it is efficient, better, and type-safe. So List it is!<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>While building an application, we often encounter situations to store or retrieve objects and .NET gives plenty of storage options to do that. These options are categorized into generic and non-generic collection types. In this article, we are going to see two such storage types &#8211; ArrayList and List and compare them. So, let&#8217;s start. [&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":[1768,946,376,1769],"class_list":["post-88631","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-csharp","tag-arraylist","tag-collections","tag-list","tag-list-vs-arraylist","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>ArrayList and List Comparasion in C# - Code Maze<\/title>\n<meta name=\"description\" content=\"In this article, we are going to talk about ArrayList and List comparison in C# and learn when should we use one over another.\" \/>\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-arraylist-vs-list\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ArrayList and List Comparasion in C# - Code Maze\" \/>\n<meta property=\"og:description\" content=\"In this article, we are going to talk about ArrayList and List comparison in C# and learn when should we use one over another.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/\" \/>\n<meta property=\"og:site_name\" content=\"Code Maze\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-05T05:58:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-19T17:38:44+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=\"4 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-arraylist-vs-list\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/\"},\"author\":{\"name\":\"Code Maze\",\"@id\":\"https:\/\/code-maze.com\/#\/schema\/person\/09d29b223012c8e94a68ba62861d0b04\"},\"headline\":\"ArrayList and List Comparasion in C#\",\"datePublished\":\"2023-05-05T05:58:24+00:00\",\"dateModified\":\"2023-06-19T17:38:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/\"},\"wordCount\":739,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/code-maze.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png\",\"keywords\":[\"ArrayList\",\"collections\",\"list\",\"List vs ArrayList\"],\"articleSection\":[\"C#\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/\",\"url\":\"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/\",\"name\":\"ArrayList and List Comparasion in C# - Code Maze\",\"isPartOf\":{\"@id\":\"https:\/\/code-maze.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png\",\"datePublished\":\"2023-05-05T05:58:24+00:00\",\"dateModified\":\"2023-06-19T17:38:44+00:00\",\"description\":\"In this article, we are going to talk about ArrayList and List comparison in C# and learn when should we use one over another.\",\"breadcrumb\":{\"@id\":\"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#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-arraylist-vs-list\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/code-maze.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ArrayList and List Comparasion 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":"ArrayList and List Comparasion in C# - Code Maze","description":"In this article, we are going to talk about ArrayList and List comparison in C# and learn when should we use one over another.","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-arraylist-vs-list\/","og_locale":"en_US","og_type":"article","og_title":"ArrayList and List Comparasion in C# - Code Maze","og_description":"In this article, we are going to talk about ArrayList and List comparison in C# and learn when should we use one over another.","og_url":"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/","og_site_name":"Code Maze","article_published_time":"2023-05-05T05:58:24+00:00","article_modified_time":"2023-06-19T17:38:44+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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#article","isPartOf":{"@id":"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/"},"author":{"name":"Code Maze","@id":"https:\/\/code-maze.com\/#\/schema\/person\/09d29b223012c8e94a68ba62861d0b04"},"headline":"ArrayList and List Comparasion in C#","datePublished":"2023-05-05T05:58:24+00:00","dateModified":"2023-06-19T17:38:44+00:00","mainEntityOfPage":{"@id":"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/"},"wordCount":739,"commentCount":3,"publisher":{"@id":"https:\/\/code-maze.com\/#organization"},"image":{"@id":"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#primaryimage"},"thumbnailUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png","keywords":["ArrayList","collections","list","List vs ArrayList"],"articleSection":["C#"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/","url":"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/","name":"ArrayList and List Comparasion in C# - Code Maze","isPartOf":{"@id":"https:\/\/code-maze.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#primaryimage"},"image":{"@id":"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#primaryimage"},"thumbnailUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png","datePublished":"2023-05-05T05:58:24+00:00","dateModified":"2023-06-19T17:38:44+00:00","description":"In this article, we are going to talk about ArrayList and List comparison in C# and learn when should we use one over another.","breadcrumb":{"@id":"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/code-maze.com\/csharp-arraylist-vs-list\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/code-maze.com\/csharp-arraylist-vs-list\/#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-arraylist-vs-list\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/code-maze.com\/"},{"@type":"ListItem","position":2,"name":"ArrayList and List Comparasion 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\/88631","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=88631"}],"version-history":[{"count":6,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/posts\/88631\/revisions"}],"predecessor-version":[{"id":91711,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/posts\/88631\/revisions\/91711"}],"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=88631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/categories?post=88631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/tags?post=88631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}