user972616 user972616 - 1 year ago 93
C# Question

How do you parse a JSON file using

I am trying to read a JSON file and parse it. I have this code for reading from my file

StreamReader re = new StreamReader("artists.json");
JsonTextReader reader = new JsonTextReader(re);

But how do I parse it now from reader so I can search data from the file?

I tried reading the documentation but couldn't find anything

Answer Source
    using Newtonsoft.Json;


    JsonSerializer se = new JsonSerializer();
    object parsedData = se.Deserialize(reader);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download