Пример #1
0
        public static async void Test()
        {
            HttpClient          client   = new HttpClient();
            HttpResponseMessage response = await client.GetAsync("http://infinitepc:4089/GetNetworkTablesJSON");

            response.EnsureSuccessStatusCode();
            string responseBody = await response.Content.ReadAsStringAsync();

            Console.WriteLine("\n");

            NetworkElement tree = NetworkUtil.ConvertJSONToNetworkElement(responseBody);

            tree.PrintTable();

            object result = NetworkUtil.GetKey("TestRoot", tree);

            Console.WriteLine("Get Key Result: " + result.ToString());
        }