I'm working on a school project. I'm still a newbie at C# and I request JSON from an API that looks like this:
[
{
"id": 8402,
"klant_id": 8401,
"datum": "2021-03-25",
"arrangement": "Pitch en Golf 18 holes",
"personen": 30,
"pending_online_booking": true,
"referentie": "8401-1",
"_links": {
"curies": [
{
"name": "recras",
"href": "/api_docs/{rel}.html",
"templated": true
},
],
"recras:diensten_bij_boeking": {
"href": "/api2.php/boekingen/8402/diensten"
},
"recras:invoices": {
"href": "/api2.php/boekingen/8402/facturen"
}
}
}
]
I need to put everything in an array so I can work with it. How could I accomplish this?
>(jsonString);`. More about json serialization here: https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-how-to?pivots=dotnet-5-0
– AlleXyS Mar 24 '21 at 08:25