JSON в C#
Конвертуйте JSON дані у визначення типу C#
JSON у C#
Ваш код на C#
using System;
using System.Text.Json;
public record Root(
[property: JsonPropertyName("a")]
string A,
[property: JsonPropertyName("arr")]
int[] Arr,
[property: JsonPropertyName("nested")]
Nested Nested
);
public record Nested(
[property: JsonPropertyName("a")]
int A,
[property: JsonPropertyName("b")]
string B
);