Using the SelectToken method of JSON.NET to select a token with JSONPath, I found no way to specifiy that the search should be case-insensitive.
E.g.
jso
When I want to get a token and not have to worry about case I do this:
var data = JObject.Parse(message.Data);
var dataDictionary = new Dictionary(data.ToObject>(),
StringComparer.CurrentCultureIgnoreCase);
If there are any nested structures I need to worry about then I have to do it again for those but that StringComparer means either dataDictionary["CampaignId"].ToString();
or dataDictionary["campaignId"].ToString();
will work and I get both.