Sijesh Thiruthiyil

Sijesh Thiruthiyil

  • 2.1k
  • 73
  • 122

C# code to generate a multidimensional Json String.

Jun 27 2022 5:36 AM

I am trying to generate a multidimension Json string using C# code, but couldn't achive the result. below is th sample json string which need to be achived through c# code.

{
    "records": {
        "record": [
            {
                "employee": 151,
                "account": "aaa",
                "department": "ss"
            },
            {
                "employee": 152,
                "account": "bbb",
                "department": "yy"
            }
        ]
    }
}
 

Please help me to achive this result through c# code.


Answers (1)