This is the deserialization that produces the problem:
public MyType ProblematicDeserialization(jsonString)
{
return Newtonsoft.Json.JsonConvert.DeserializeO
After /u/dbc's comment that the byte sequence indicated that the encoding of the resource file was UTF-8-BOM, I solved it this way:
After that, the exact same code posted in the original post worked perfectly.
First you sample does not compile, I assume you mean
public MyType ProblematicDeserialization(s)
{
return Newtonsoft.Json.JsonConvert.DeserializeObject<MyType)(s);
}