RazibPalash zone

RazibPalash zone

  • 1.6k
  • 150
  • 599

Deserialize JSON with dynamic keys using C#JsonConvert.DeserializeObje

Aug 30 2022 5:00 AM

{
    "success": 1,
    "results": [
        {
            "Id": "124121306",
            "questions": {
                "updated_at": "1661832016",
                "key": "#AC#B3#C20835504#D8#E15017245#F8#",
                "sp": {
                    "answer1": {
                        "id": "1246",
                        "name": "name of answer",
                        "values": [
                            {
                                "id": "1470723977",
                                "values": "5.50",
                                "header": "good",
                                "name": "Parvez",
                                "team": "1"
                            },
                            {
                                "id": "1470723977",
                                "values": "5.50",
                                "header": "bad",
                                "name": "Hossain",
                                "team": "1"
                            }
                        ]
                    },
                    "answer2": {
                        "id": "30016",
                        "name": "name of answer",
                        "values": [
                            {
                                "id": "1470723976",
                                "values": "5.50",
                                "header": "good",
                                "name": "Emon",
                                "team": "1"
                            },
                            {
                                "id": "1470723977",
                                "values": "5.50",
                                "header": "bad",
                                "name": "hello",
                                "team": "1"
                            }
                        ]
                    }
                }
            }
        }
    ]
}


Answers (4)