0
{
    "result": {
        "sentences": [
            [
                {
                    "errorType": "correct",
                    "index": 0,
                    "isCorrect": true,
                    "sentence_index": 0,
                    "suggestion": "Program",
                    "token": "Pregram"
                },
                {
                    "errorType": "correct",
                    "index": 1,
                    "isCorrect": true,
                    "sentence_index": 0,
                    "suggestion": "Get",
                    "token": "Grt"
                },
                {
                    "errorType": "correct",
                    "index": 2,
                    "isCorrect": true,
                    "sentence_index": 0,
                    "suggestion": "Our",
                    "token": "Hour"
                }
            ]
        ],
        "totalErrorCount": 0
    },
    "time_taken": "0.25s"
}

How can i read this JSON file on C#? I want to read all arrays "suggestion" and "token" value.

I have no good knowledge on JSON. Tried a lot of parsers from Github and https://jsonutils.com/. Did not work for me.

James Z
  • 12,104
  • 10
  • 27
  • 43
Pavel
  • 9
  • 2
  • [this answer](https://stackoverflow.com/a/58495751/2501279) explains build into the modern framework versions json functionality. – Guru Stron Apr 18 '22 at 18:27

0 Answers0