0

Json can be any of following and i would not know the master list how do i covert to c# class

{"title": {"fr-FR": "L'Auberge Espagnole"}}
{"title": {"en-GB": "Van Wilder 2: The Rise of Taj"}} 
{"title": {"fr-CA": "Crooklyn"}} 
{"title": {"es-ES": "Julieta"} }
{"title":{"en":"In Ice Cold Blood"}}
{"title":{"fr":"spiderman"}}
{"title":{"es":"robot"}}

I tried below and it did not work

public class RootObject
{
    public Title title { get; set; }
}

public class Title
{
    public Dictionary<object, string> items { get; set; }
}

0 Answers0