1

I need to deserialize custom JSON to anonymous C# object.

My sample JSON (can be any, even with nested properties as objects):

var json = "{ 'Surname': 'Wick'}"; 

And I want to be deserialized as:

var jsonResult = new { Surname = "Wick" };

But I end up with something like this:

enter image description here

m0nhawk
  • 22,980
  • 9
  • 45
  • 73
mardok
  • 2,135
  • 2
  • 23
  • 37

0 Answers0