Accessing properties with a dot in their name

You could create a root class to deserialize into and use JsonProperty

public class Root
{
    // Use the proper type instead of object
    [JsonProperty(PropertyName = "en.pickthall")]
    public IEnumerable<object> EnPickthall { get; set; } 

    public Root() { }
}

Used as follows

Root stuff = JsonConvert.DeserializeObject<Root>(result);

foreach(var x in stuff.EnPickthall)
{

}

Leave a Comment