Answer the question
In order to leave comments, you need to log in
How to get information from json?
Help write a script.
It is necessary that, if on the server in json, for example, it is written
{
"start": "true"
}
Answer the question
In order to leave comments, you need to log in
Install Newtonsoft.Json from NuGet
string json = "{ \"start\": \"true\" }";
JToken token = JObject.Parse(json)["start"];
bool start = Convert.ToBoolean(token);
if(start) Console.WriteLine("It's true");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question