I have a problem loading a json file into a dynamic object in c#. My problem is that some parameters of the c# file have a "-" in the keyword, such as the "official-artwork" parameter. Under what name can I access it now?
My Code:
string json = "https://pokeapi.co/api/v2/pokemon/pikachu";dynamic data = JsonConvert.DeserializeObject<dynamic>(json); Console.WriteLine(data.sprites.other.official_artwork.front_default);
string json = "https://pokeapi.co/api/v2/pokemon/pikachu";dynamic data = JsonConvert.DeserializeObject<dynamic>(json); Console.WriteLine(data.sprites.other.official_artwork.front_default);