{"id":72486,"date":"2022-07-21T08:00:09","date_gmt":"2022-07-21T06:00:09","guid":{"rendered":"https:\/\/code-maze.com\/?p=72486"},"modified":"2022-07-21T08:40:01","modified_gmt":"2022-07-21T06:40:01","slug":"csharp-convert-string-array-to-string","status":"publish","type":"post","link":"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/","title":{"rendered":"How to Convert String Array to String in C#"},"content":{"rendered":"<p>In this article, we are going to learn how to convert a string array to a string in C#. We will cover five different approaches to achieve the same result, and in the end, we will inspect benchmark results to see the fastest way to accomplish the conversion.\u00a0<\/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\/collections-arrays\/ConvertStringArrayToString\" target=\"_blank\" rel=\"nofollow noopener\">GitHub repository<\/a>.<\/div>\n<p>Let&#8217;s start.<\/p>\n<h2>Convert Using Loop and Addition Assignment Operator<\/h2>\n<p>The first and easiest way to convert a string array into a string is using the addition assignment <code>+=<\/code> operator:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">public string UsingLoopStringAdditionAssignment(string[] array)\r\n{\r\n    var result = string.Empty;\r\n\r\n    foreach (var item in array)\r\n    {\r\n        result += item;\r\n    }\r\n\r\n    return result;\r\n}<\/pre>\n<p>First, we create an empty string variable <code>result<\/code> to represent the final result.\u00a0In the next step, we loop through the array and increment the <code>result<\/code> variable with each element inside the array. Then, we return the <code>result<\/code> variable containing every array&#8217;s element.<\/p>\n<p>Even though it is an easy-to-implement approach, it is not a good one. Since the string is an immutable type, in each iteration, we copy the entire string content and add the new value to the <code>result<\/code> variable. It is also good to know that we can optimize some operations on single strings (like the <code>Substring<\/code>) using <a href=\"https:\/\/code-maze.com\/csharp-span-to-improve-application-performance\/\" target=\"_blank\" rel=\"noopener\">Span<\/a>.<\/p>\n<p>That said, we are going to implement our second approach using a loop. Let&#8217;s do it.<\/p>\n<h2>Convert String Array to String Using Loop and StringBuilder<\/h2>\n<p>This approach is very similar to the previous one, with the exception that, this time, we are going to use the <a href=\"https:\/\/code-maze.com\/stringbuilder-csharp\/\" target=\"_blank\" rel=\"noopener\">StringBuilder <\/a>class instead of a <code>string<\/code>. Let&#8217;s create a <code>UsingLoopStringBuilder<\/code> method to accomplish this:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">public string UsingLoopStringBuilder(string[] array)\r\n{\r\n    var result = new StringBuilder();\r\n\r\n    foreach (var item in array)\r\n    {\r\n        result.Append(item);\r\n    }\r\n\r\n    return result.ToString();\r\n}<\/pre>\n<p>First, we instantiate a <code>StringBuilder<\/code> object to a <code>result<\/code> variable. Then, inside the loop, we append each element to it. In the end, we return the string inside the <code>result<\/code> variable using the <code>result.ToString()<\/code>.<\/p>\n<h2>Convert String Array to String Using String.Join<\/h2>\n<p>Let&#8217;s convert a string array into a string using a <code>string.Join(...)<\/code> method:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">public string UsingStringJoin(string[] array)\r\n{\r\n    return string.Join(string.Empty, array);\r\n}<\/pre>\n<p>The string class contains a static <code>Join(...)<\/code> method, and with it, we can accomplish the same result.<\/p>\n<p>The first input parameter of the <code>string.Join(...)<\/code> method represents a separator used between each element. Since we don&#8217;t need any separator in our example, we use a\u00a0<code>string.Empty<\/code> to represent an empty string. However, we could use any char, string, or even a white space to separate the elements. The second parameter represents the array of the elements we want to convert into a string.<\/p>\n<p>Behind the scenes, the <code>string.Join(...)<\/code> method also uses the <code>StringBuilder<\/code> class.<\/p>\n<h2>Convert Using String.Concat<\/h2>\n<p>Let&#8217;s create a <code>UsingStringConcat<\/code> method to convert a string array into a string:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">public string UsingStringConcat(string[] array)\r\n{\r\n    return string.Concat(array);\r\n}<\/pre>\n<p>First, our method receives the array we want to convert.<\/p>\n<p>Then we call the\u00a0<code>string<\/code>&#8216;s static <code>Concat(...)<\/code> method. This method works similarly to the <code>string.Join(...)<\/code>. Yet, it doesn&#8217;t receive any separator, but it is perfect for achieving the results we want in this article. However, if we need to have a separator between elements, we need to use a different approach.<\/p>\n<h2>Convert Using Enumerable.Aggregate<\/h2>\n<p>The last approach that we are going to show uses <code>Aggregate(...)<\/code> method:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">public string UsingAggregation(string[] array)\r\n{\r\n    return array.Aggregate((prev, current) =&gt; prev + current);\r\n}<\/pre>\n<p>We simply return the result of the <code>Enumeraable.Aggregate(...)<\/code> method.<\/p>\n<p>This method receives a <code>Func<\/code> delegate as a parameter to apply an accumulator over the array. This <code>Func<\/code> receives two variables as input parameters, <code>prev<\/code> and <code>current<\/code>. The <code>prev<\/code> represents the accumulator with all the previous elements, while the <code>current<\/code> represents each array value.<\/p>\n<p>The <code>Aggregate<\/code> method efficiency depends on the accumulator function. In our case, we are using <code>+=<\/code> operator. However, we could get more performance using the <code>StringBuilder<\/code>:<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">return array.Aggregate(new StringBuilder(), (prev, current) =&gt; prev.Append(current)).ToString();<\/code><\/p>\n<h2>Benchmark Comparison<\/h2>\n<p>We are going to run two benchmarks to check our method&#8217;s behavior against small and big arrays.<\/p>\n<p>Let&#8217;s inspect the result against a small array, running the benchmark with an array of 1,000 elements:<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">private string[] _array = Enumerable.Repeat(\"Code-Maze\", 1_000).ToArray();<\/code><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">|                           Method |       Mean |      Error |     StdDev |\r\n|--------------------------------- |-----------:|-----------:|-----------:|\r\n|                UsingStringConcat |   7.525 us |  0.0358 us |  0.0299 us |\r\n|                  UsingStringJoin |   9.287 us |  0.1732 us |  0.1447 us |\r\n|           UsingLoopStringBuilder |  10.264 us |  0.2435 us |  0.2606 us |\r\n|                 UsingAggregation | 929.379 us |  6.2232 us |  5.8212 us |\r\n|UsingLoopStringAdditionAssignment | 948.445 us | 17.8103 us | 14.8724 us |<\/pre>\n<p>After running this benchmark, we can see that the fastest approach (<code>UsingStringConcat<\/code>) is more than 126 times faster than the slowest (<code>UsingLoopStringAdditionAssignment<\/code>) when we have an array of 1,000 elements.<\/p>\n<p>This difference is even more significant when we have a larger array:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">|                           Method |          Mean |         Error |        StdDev |\r\n|--------------------------------- |--------------:|--------------:|--------------:|\r\n|                UsingStringConcat |      1.117 ms |     0.0223 ms |     0.0555 ms |\r\n|                  UsingStringJoin |      1.499 ms |     0.0299 ms |     0.0676 ms |\r\n|           UsingLoopStringBuilder |      2.483 ms |     0.0693 ms |     0.2032 ms |\r\n|                 UsingAggregation | 47,873.520 ms | 1,516.6612 ms | 4,471.9098 ms |\r\n|UsingLoopStringAdditionAssignment | 49,610.308 ms | 1,679.1156 ms | 4,950.9103 ms |<\/pre>\n<p>As we can see in the benchmark results, when our array has 100,000 elements, the difference between the fastest approach achieves is more than 45,000 ms.<\/p>\n<p><code>UsingStringConcat<\/code>, <code>UsingStringJoin<\/code>, and <code>UsingLoopStringBuilder<\/code> use the <code>StringBuilder<\/code> class to concatenate the elements. On the other hand, <code>UsingLoopStringAdditionAssignment<\/code> and <code>UsingAggregation<\/code> concatenate the elements using the <code>+=<\/code> operator. The benchmark results show that <code>StringBuilder<\/code> is much more efficient when dealing with strings.<\/p>\n<h2>Conclusion<\/h2>\n<p>In this article, we have seen five different approaches to converting an array of strings to a string in C#. After inspecting benchmark results, we have seen that the most efficient approach is using the <code>String.Concat<\/code> method. However, any approach that uses <code>StringBuilder<\/code> is also very efficient. Now we can choose the approach that best fits our needs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we are going to learn how to convert a string array to a string in C#. We will cover five different approaches to achieve the same result, and in the end, we will inspect benchmark results to see the fastest way to accomplish the conversion.\u00a0 Let&#8217;s start. Convert Using Loop and Addition [&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,506],"tags":[],"class_list":["post-72486","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-csharp","category-intermediate","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>How to Convert String Array to String in C# - Code Maze<\/title>\n<meta name=\"description\" content=\"In this article, we are going to learn how to convert a string array to a string in C#. We will cover five different approaches.\" \/>\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-convert-string-array-to-string\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Convert String Array to String in C# - Code Maze\" \/>\n<meta property=\"og:description\" content=\"In this article, we are going to learn how to convert a string array to a string in C#. We will cover five different approaches.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/\" \/>\n<meta property=\"og:site_name\" content=\"Code Maze\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-21T06:00:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-21T06:40:01+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=\"5 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-convert-string-array-to-string\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/\"},\"author\":{\"name\":\"Code Maze\",\"@id\":\"https:\/\/code-maze.com\/#\/schema\/person\/09d29b223012c8e94a68ba62861d0b04\"},\"headline\":\"How to Convert String Array to String in C#\",\"datePublished\":\"2022-07-21T06:00:09+00:00\",\"dateModified\":\"2022-07-21T06:40:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/\"},\"wordCount\":745,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/code-maze.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png\",\"articleSection\":[\"C#\",\"Intermediate\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/\",\"url\":\"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/\",\"name\":\"How to Convert String Array to String in C# - Code Maze\",\"isPartOf\":{\"@id\":\"https:\/\/code-maze.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png\",\"datePublished\":\"2022-07-21T06:00:09+00:00\",\"dateModified\":\"2022-07-21T06:40:01+00:00\",\"description\":\"In this article, we are going to learn how to convert a string array to a string in C#. We will cover five different approaches.\",\"breadcrumb\":{\"@id\":\"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#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-convert-string-array-to-string\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/code-maze.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Convert String Array to String 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":"How to Convert String Array to String in C# - Code Maze","description":"In this article, we are going to learn how to convert a string array to a string in C#. We will cover five different approaches.","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-convert-string-array-to-string\/","og_locale":"en_US","og_type":"article","og_title":"How to Convert String Array to String in C# - Code Maze","og_description":"In this article, we are going to learn how to convert a string array to a string in C#. We will cover five different approaches.","og_url":"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/","og_site_name":"Code Maze","article_published_time":"2022-07-21T06:00:09+00:00","article_modified_time":"2022-07-21T06:40:01+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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#article","isPartOf":{"@id":"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/"},"author":{"name":"Code Maze","@id":"https:\/\/code-maze.com\/#\/schema\/person\/09d29b223012c8e94a68ba62861d0b04"},"headline":"How to Convert String Array to String in C#","datePublished":"2022-07-21T06:00:09+00:00","dateModified":"2022-07-21T06:40:01+00:00","mainEntityOfPage":{"@id":"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/"},"wordCount":745,"commentCount":2,"publisher":{"@id":"https:\/\/code-maze.com\/#organization"},"image":{"@id":"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#primaryimage"},"thumbnailUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png","articleSection":["C#","Intermediate"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/","url":"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/","name":"How to Convert String Array to String in C# - Code Maze","isPartOf":{"@id":"https:\/\/code-maze.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#primaryimage"},"image":{"@id":"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#primaryimage"},"thumbnailUrl":"https:\/\/code-maze.com\/wp-content\/uploads\/2021\/12\/social-csharp.png","datePublished":"2022-07-21T06:00:09+00:00","dateModified":"2022-07-21T06:40:01+00:00","description":"In this article, we are going to learn how to convert a string array to a string in C#. We will cover five different approaches.","breadcrumb":{"@id":"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/code-maze.com\/csharp-convert-string-array-to-string\/#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-convert-string-array-to-string\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/code-maze.com\/"},{"@type":"ListItem","position":2,"name":"How to Convert String Array to String 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\/72486","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=72486"}],"version-history":[{"count":3,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/posts\/72486\/revisions"}],"predecessor-version":[{"id":72913,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/posts\/72486\/revisions\/72913"}],"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=72486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/categories?post=72486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-maze.com\/wp-json\/wp\/v2\/tags?post=72486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}