public DisplayData() { InitializeComponent(); var webResponse = new ServerCommunicator().GetRequest("/activities"); var serializer = new DataContractJsonSerializer(new List <Activity>().GetType()); var deserializedActivity = serializer.ReadObject(webResponse.GetResponseStream()) as List <Activity>; webResponse.Close(); foreach (var a in deserializedActivity) { Console.WriteLine(a.name); } this.lbActivities.Items.AddRange(deserializedActivity.ToArray()); }