{"id":228111,"date":"2024-05-07T05:21:16","date_gmt":"2024-05-07T05:21:16","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/?p=228111"},"modified":"2024-05-07T05:21:16","modified_gmt":"2024-05-07T05:21:16","slug":"how-to-get-value-from-json-array-in-c","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/","title":{"rendered":"How to get value from JSON array in C#?"},"content":{"rendered":"<p>JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between a web application and a server. When working with JSON data in C#, you may encounter situations where you need to retrieve specific values from a JSON array. In this article, we will explore different techniques to accomplish this task.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Using_JSONNET_Library\" title=\"Using JSON.NET Library\">Using JSON.NET Library<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Step_1_Install_JSONNET_Library\" title=\"Step 1: Install JSON.NET Library\">Step 1: Install JSON.NET Library<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Step_2_Deserialize_the_JSON_Array\" title=\"Step 2: Deserialize the JSON Array\">Step 2: Deserialize the JSON Array<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Step_3_Access_the_Values\" title=\"Step 3: Access the Values\">Step 3: Access the Values<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Frequently_Asked_Questions\" title=\"Frequently Asked Questions\">Frequently Asked Questions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Q1_How_can_I_check_if_a_JSON_array_is_empty\" title=\"Q1: How can I check if a JSON array is empty?\">Q1: How can I check if a JSON array is empty?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Q2_Can_I_deserialize_JSON_directly_into_a_strongly-typed_object\" title=\"Q2: Can I deserialize JSON directly into a strongly-typed object?\">Q2: Can I deserialize JSON directly into a strongly-typed object?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Q3_How_can_I_get_the_length_of_a_JSON_array_in_C\" title=\"Q3: How can I get the length of a JSON array in C#?\">Q3: How can I get the length of a JSON array in C#?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Q4_What_if_the_JSON_array_contains_nested_objects\" title=\"Q4: What if the JSON array contains nested objects?\">Q4: What if the JSON array contains nested objects?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Q5_How_can_I_extract_all_values_from_a_JSON_array\" title=\"Q5: How can I extract all values from a JSON array?\">Q5: How can I extract all values from a JSON array?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Q6_Can_I_convert_a_JSON_array_to_a_C_List\" title=\"Q6: Can I convert a JSON array to a C# List?\">Q6: Can I convert a JSON array to a C# List?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Q7_What_if_the_JSON_array_contains_arrays_as_elements\" title=\"Q7: What if the JSON array contains arrays as elements?\">Q7: What if the JSON array contains arrays as elements?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Q8_How_can_I_handle_missing_properties_in_a_JSON_array\" title=\"Q8: How can I handle missing properties in a JSON array?\">Q8: How can I handle missing properties in a JSON array?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Q9_Can_I_access_JSON_array_values_using_a_loop\" title=\"Q9: Can I access JSON array values using a loop?\">Q9: Can I access JSON array values using a loop?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Q10_How_can_I_handle_errors_while_deserializing_a_JSON_array\" title=\"Q10: How can I handle errors while deserializing a JSON array?\">Q10: How can I handle errors while deserializing a JSON array?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Q11_Can_I_modify_the_values_of_a_JSON_array_in_C\" title=\"Q11: Can I modify the values of a JSON array in C#?\">Q11: Can I modify the values of a JSON array in C#?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#Q12_How_can_I_convert_a_JSON_array_to_a_C_array\" title=\"Q12: How can I convert a JSON array to a C# array?\">Q12: How can I convert a JSON array to a C# array?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Using_JSONNET_Library\"><\/span>Using JSON.NET Library<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>JSON.NET is a popular JSON framework for .NET that provides powerful tools for working with JSON data in C#. To get values from a JSON array, you can use the following steps:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Install_JSONNET_Library\"><\/span>Step 1: Install JSON.NET Library<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTo begin, you need to install the JSON.NET library. You can do this by right-clicking on your project in Visual Studio and selecting &#8220;Manage NuGet Packages.&#8221; Then, search for &#8220;Newtonsoft.Json&#8221; and click on the &#8220;Install&#8221; button.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Deserialize_the_JSON_Array\"><\/span>Step 2: Deserialize the JSON Array<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nFirst, you need to deserialize the JSON array into a C# object. Here&#8217;s an example:<\/p>\n<p>&#8220;`csharp<br \/>\nstring jsonString = &#8220;[{&#8220;name&#8221;:&#8221;John&#8221;,&#8221;age&#8221;:30},{&#8220;name&#8221;:&#8221;Jane&#8221;,&#8221;age&#8221;:28}]&#8221;;<br \/>\ndynamic jsonArray = JsonConvert.DeserializeObject(jsonString);<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Access_the_Values\"><\/span>Step 3: Access the Values<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nOnce you&#8217;ve deserialized the JSON array, you can access its values using the indexing operator and the property names. Here&#8217;s an example:<\/p>\n<p>&#8220;`csharp<br \/>\nstring name = jsonArray[0].name;<br \/>\nint age = jsonArray[0].age;<br \/>\n&#8220;`<\/p>\n<p><b>Step 4: Retrieve the Value from JSON Array in C#: <\/b><br \/>\nTo get a specific value from a JSON array in C#, you can use the indexing operator and provide the index of the desired element. Here&#8217;s an example:<\/p>\n<p>&#8220;`csharp<br \/>\nstring name = jsonArray[0].name;<br \/>\n&#8220;`<\/p>\n<p>The above code retrieves the value of the &#8220;name&#8221; property from the first element of the JSON array.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions\"><\/span>Frequently Asked Questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Q1_How_can_I_check_if_a_JSON_array_is_empty\"><\/span>Q1: How can I check if a JSON array is empty?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTo check if a JSON array is empty, you can use the `Count` property of the array. If it returns 0, the array is empty.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q2_Can_I_deserialize_JSON_directly_into_a_strongly-typed_object\"><\/span>Q2: Can I deserialize JSON directly into a strongly-typed object?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can use the `JsonConvert.DeserializeObject<T>` method to directly deserialize JSON into a strongly-typed object.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q3_How_can_I_get_the_length_of_a_JSON_array_in_C\"><\/span>Q3: How can I get the length of a JSON array in C#?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can use the `Count` property of the JSON array to get its length.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q4_What_if_the_JSON_array_contains_nested_objects\"><\/span>Q4: What if the JSON array contains nested objects?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIf the JSON array contains nested objects, you can access their properties using additional indexing operators. For example: `jsonArray[0].nestedObject.property`.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q5_How_can_I_extract_all_values_from_a_JSON_array\"><\/span>Q5: How can I extract all values from a JSON array?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can use a loop or iteration to iterate through the JSON array and access each value individually.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q6_Can_I_convert_a_JSON_array_to_a_C_List\"><\/span>Q6: Can I convert a JSON array to a C# List?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can use the `JsonConvert.DeserializeObject<List<T>>` method to convert a JSON array into a C# List.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q7_What_if_the_JSON_array_contains_arrays_as_elements\"><\/span>Q7: What if the JSON array contains arrays as elements?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIf the JSON array contains arrays as elements, you can access the nested arrays using additional indexing operators.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q8_How_can_I_handle_missing_properties_in_a_JSON_array\"><\/span>Q8: How can I handle missing properties in a JSON array?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can use the null-conditional operator (`?.`) to safely access properties in a JSON array. If a property is missing, the result will be null.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q9_Can_I_access_JSON_array_values_using_a_loop\"><\/span>Q9: Can I access JSON array values using a loop?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can use a loop or iteration to access JSON array values. You can utilize the `GetEnumerator()` method and loop through the elements.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q10_How_can_I_handle_errors_while_deserializing_a_JSON_array\"><\/span>Q10: How can I handle errors while deserializing a JSON array?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can use error handling techniques like try-catch blocks to handle any errors that may occur during the deserialization process.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q11_Can_I_modify_the_values_of_a_JSON_array_in_C\"><\/span>Q11: Can I modify the values of a JSON array in C#?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can modify the values of a JSON array by assigning new values to the corresponding properties.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q12_How_can_I_convert_a_JSON_array_to_a_C_array\"><\/span>Q12: How can I convert a JSON array to a C# array?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can use the `JsonConvert.DeserializeObject<T[]>` method to convert a JSON array into a C# array.<\/p>\n<p>In conclusion, retrieving values from a JSON array in C# is a straightforward task when using the JSON.NET library. By deserializing the JSON array and accessing its values using indexing and property names, you can easily retrieve the desired information and work with it in your C# application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between a web application and a server. When working with JSON data in C#, you may encounter situations where you need to retrieve specific values from a JSON array. In this article, we will explore different techniques to accomplish this &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to get value from JSON array in C#?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#more-228111\">Read more<span class=\"screen-reader-text\">How to get value from JSON array in C#?<\/span><\/a><\/p>\n","protected":false},"author":57,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-228111","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to get value from JSON array in C#?<\/title>\n<meta name=\"description\" content=\"JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between a web application and a server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to get value from JSON array in C#?\" \/>\n<meta property=\"og:description\" content=\"JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between a web application and a server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-07T05:21:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Casey Mayer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Casey Mayer\" \/>\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\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/\"},\"author\":{\"name\":\"Casey Mayer\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f\"},\"headline\":\"How to get value from JSON array in C#?\",\"datePublished\":\"2024-05-07T05:21:16+00:00\",\"dateModified\":\"2024-05-07T05:21:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/\"},\"wordCount\":687,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/\",\"name\":\"How to get value from JSON array in C#?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2024-05-07T05:21:16+00:00\",\"dateModified\":\"2024-05-07T05:21:16+00:00\",\"description\":\"JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between a web application and a server.\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to get value from JSON array in C#?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f\",\"name\":\"Casey Mayer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Casey Mayer\"},\"description\":\"Guest author Casey Mayer has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to get value from JSON array in C#?","description":"JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between a web application and a server.","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:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/","og_locale":"en_US","og_type":"article","og_title":"How to get value from JSON array in C#?","og_description":"JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between a web application and a server.","og_url":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2024-05-07T05:21:16+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png","type":"image\/png"}],"author":"Casey Mayer","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Casey Mayer","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/"},"author":{"name":"Casey Mayer","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f"},"headline":"How to get value from JSON array in C#?","datePublished":"2024-05-07T05:21:16+00:00","dateModified":"2024-05-07T05:21:16+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/"},"wordCount":687,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/","url":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/","name":"How to get value from JSON array in C#?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2024-05-07T05:21:16+00:00","dateModified":"2024-05-07T05:21:16+00:00","description":"JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between a web application and a server.","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-json-array-in-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to get value from JSON array in C#?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f","name":"Casey Mayer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Casey Mayer"},"description":"Guest author Casey Mayer has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/228111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/57"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=228111"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/228111\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=228111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=228111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=228111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}