using System.Security.Claims;
using Newtonsoft.Json.Linq;
using System.Collections;
public static void Main() {
public static void Main()
using (var webClient = new System.Net.WebClient()) {
jsonString = webClient.DownloadString("http://91.240.86.250:8000/api/v1/get_dict_list?token=tutorial_token");
Console.WriteLine(jsonString);
Console.WriteLine(jsonString);
JObject root = JObject.Parse(jsonString);
Console.WriteLine(root["get_dict_list_result"]["ErrorCode"]);
JArray items = (JArray)root["get_dict_list_result"]["Data"];
for (int i = 0; i < items.Count; i++)
item = (JObject)items[i];
Console.WriteLine((((JProperty)jtoken).Name.ToString() + " : " + ((JProperty)jtoken).Value.ToString() + "<br />");
JsonTextReader reader = new JsonTextReader(new StringReader(jsonString));
if (reader.Value != null)
Console.WriteLine("Token: {0}, Value: {1}", reader.TokenType, reader.Value);
Console.WriteLine("Token: {0}", reader.TokenType);