static void Main(string[] args)
{
string someJsonString = "{\"time\": \"2021-02-24T13:15:43Z\"}";
JObject someJsonObject = JObject.Parse(someJsonString);
string time = someJsonObject.GetValue("time").Value<string>();
Console.WriteLine(time);
Console.ReadLine();
}
[Using Newtonsoft.Json version 12.0.3]
Why is the printed result is 02/24/2021 13:15:43 when it should be 2021-02-24T13:15:43Z, I just need the value as a string ... what is going on?