public static void DemoList(string url) { //List //View raw JSON Console.WriteLine(JKJson.Deserialized(url)); //Its a list, you can loop through this now Console.WriteLine(JKJson.ListOut(JKJson.Deserialized(url))); //See... //Access the properties, by accessing the index of the list and then the property Console.WriteLine(JKJson.ListOut(JKJson.Deserialized(url))[0]["name"]); }
public static void DemoDict(string url) { //Dictionary //View raw JSON Console.WriteLine(JKJson.Deserialized(url)); //Its a dictionary, you can loop through this now and find keys and values Console.WriteLine(JKJson.DictOut(JKJson.Deserialized(url))); //See... //First check what property holds the array - then treat it like a list, because it is one //Access the properties, by accessing the index of the list and then the property Console.WriteLine(JKJson.DictOut(JKJson.Deserialized(url))["data"][0]["first_name"]); }