19 lines
448 B
Plaintext
19 lines
448 B
Plaintext
// Root myDeserializedClass = JsonSerializer.Deserialize<Root>(myJsonResponse);
|
|
public class Datum
|
|
{
|
|
[JsonPropertyName("Name")]
|
|
public string Name { get; set; }
|
|
|
|
[JsonPropertyName("Year")]
|
|
public int Year { get; set; }
|
|
}
|
|
|
|
public class Root
|
|
{
|
|
[JsonPropertyName("Id")]
|
|
public long Id { get; set; }
|
|
|
|
[JsonPropertyName("Data")]
|
|
public Datum[] Data { get; set; }
|
|
}
|