If you use JSON.net software, you can do the same as Anand. Just deserialize the JSON string, and if it breaks or fails, then this is not a valid JSON structure. Now, if you are trying to do something like http://jsonlint.com/ , then you are probably going beyond what we could help the forums with. If you want to check for errors or not, just use the following C # code, where the result is a JSON string:
var root = JsonConvert.DeserializeObject<RootObject>(result);
where the information you want to deserialize from the JSON string should have a RootObject class that looks like:
public class RootObject {
Now this assumes that you know the information that MUST be in the JSON file. Otherwise, that the whole program is on its own.
th3n3wguy Jan 07 2018-12-12T00: 00Z
source share