using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
public static void Main()
Console.WriteLine("Environment version: " + Environment.Version);
Console.WriteLine("Json.NET version: " + typeof(JsonSerializer).Assembly.FullName);
var array = JArray.Parse(GetJson());
.Select(o => new KeyValuePair<string, string>((string)o.PropertyValues().ElementAtOrDefault(0),
(string)o.PropertyValues().ElementAtOrDefault(1)))
var dict = pairs.ToDictionary(p => p.Key, p => p.Value);
Console.WriteLine("Pairs array: ");
Console.WriteLine(JsonConvert.SerializeObject(pairs, Formatting.Indented));
Console.WriteLine("\nDictionary: ");
Console.WriteLine(JsonConvert.SerializeObject(dict, Formatting.Indented));
{""Prop1"":""key1"", ""Prop2"":""value1""},
{""Prop1"":""key2"", ""Prop2"":""value2""},
{""Prop1"":""key3"", ""Prop2"":""value3""}