1

How to deserialize a JSON to POCO based on the fact that the JSON is never the same. This includes the number of attribute, the type of attribute etc.

Basically I want to take in a variety of JSON and convert it to C# class object. I know it can be done, but I just have no idea how.

For clarity, I currently have this, where the url is dynamic.

var json = wc.DownloadString(url);

How could I retrieve an object from this JSON?

LoïcR
  • 4,940
  • 1
  • 34
  • 50
Joey Peh
  • 67
  • 7

0 Answers0