Xamarin Forms reading JSON

Xamarin Forms reading JSON

So I am retrieving JSON data from my site and this is my code:

So I am retrieving JSON data from my site and this is my code:

The model:

    class Reservations
        public string id_reservation { get; set; }
        public string spz { get; set; }
        public string reservation_day { get; set; }
        public string reservation_time { get; set; }
        public string ip_address { get; set; }

The connection and parsing:

protected async void CheckReservations(string day)
            if (CrossConnectivity.Current.IsConnected)
    private const string Url = "Urltomysite";
        private HttpClient _client = new HttpClient();
                    var content = await _client.GetStringAsync(Url);
                    List<Reservations> myData = JsonConvert.DeserializeObject<List<Reservations>>(content);

                foreach (Reservations res in myData)
                    System.Console.WriteLine("Time:" + res.reservation_time);

            catch (Exception e)
                Debug.WriteLine("" + e);

And the JSON response from my site:

id_reservation: "39",
spz: "NRGH67L",
reservation_day: "2019-01-26",
reservation_time: "14:00",
ip_address: ""

But when I try to print the reservation_time from List of the Object in the foreach I dont get any results. I am still pretty new to this and got this far from tutorials, so dont know what I am missing.

Thanx for any replies.

json xamarin

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Learn How to Add App Themes for Xamarin.Forms

Learn how to add dark and light themes to your applications using Xamarin.Forms 4.7 and customize color styles in your app UI.

JSON Parsing in Android - Step by Step Implementation

JSON Parsing in Android - What is JSON, Comparison betwen JSON and XML, JSON parsing step by step implementation and functions.

# Google's Flutter Tutorial- Easily Parse Complex JSON, Create JSON Model Classes.

Welcome to Flutter tutorial This demo helps you to easily parse any complex JSON data in to Dart Model classe easily. Proper Error Handling in Flutter https:...

Watch the Xamarin Podcast: Inverter Converter and Xamarin.Forms 4.7 |

James and Matt will talk about multi-bindings and how using it in the right way will unleast the mysterious beast Inverter Converter.

Xamarin Updates From Microsoft Build 2020

Microsoft Build 2020 is a FREE, 48-hour digital experience for everyone! With the Xamarin & .NET teams having some exciting announcements