I have obfuscated an assembly with Smart Assembly and when calling:
string json = JsonConvert.SerializeObject(drivers);
json ends up as "[{}]"
If I add [Serializable] to the class I end up with:
[{"dsh":[{},{},{},{}],"ds":[]},{"dsh":[{},{},{},{},{},{},{},{},{},{},{},{},{},{}],"ds":[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}]
But still no values.
If I don't obfuscate the code then the json string is created correctly with the correct values.
What do I need to use to get the JsonConvert.SerializeObject(drivers); to correctly serialize?
I have added:
[Serializable SmartAssembly.Attributes.DoNotObfuscate SmartAssembly.Attributes.DoNotPrune SmartAssembly.Attributes.DoNotObfuscateType]
to the classes used in the drivers object without any success.
string json = JsonConvert.SerializeObject(drivers);
json ends up as "[{}]"
If I add [Serializable] to the class I end up with:
[{"dsh":[{},{},{},{}],"ds":[]},{"dsh":[{},{},{},{},{},{},{},{},{},{},{},{},{},{}],"ds":[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}]
But still no values.
If I don't obfuscate the code then the json string is created correctly with the correct values.
What do I need to use to get the JsonConvert.SerializeObject(drivers); to correctly serialize?
I have added:
[Serializable SmartAssembly.Attributes.DoNotObfuscate SmartAssembly.Attributes.DoNotPrune SmartAssembly.Attributes.DoNotObfuscateType]
to the classes used in the drivers object without any success.