skip to Main Content

Iterate through JSON Dictionary using C#

I want to iterate through a JSON file of this kind, using C#, and compare if the response is the same as the expected response. Json file: { "request": "AAA", "response": "BBB", "expected_response": "BBB" }{ "request": "CCC", "response": "DDD", "expected_response":…

VIEW QUESTION

c# JsonConvert.SerializeObject is updating the date

I am trying to remove all indentation from my json : "date": { "start": "2020-10-23T15:30:00+00:00" } I tried with this var freeContent = JsonConvert.SerializeObject(JsonConvert.DeserializeObject(content)); But I got "date": {"start": "2020-10-23T13:30:00+00:00"} As you can see, the date is modified while I…

VIEW QUESTION
Back To Top
Search