0

I have JSON file:

{
  "DatabaseType": "Customer",
  "TableName": "Test",
  "RowsCopied": "6"
},
{
  "DatabaseType": "Customer",
  "TableName": "JDJD",
  "RowsCopied": "202"
},
{
  "DatabaseType": "Hosting",
  "TableName": "Test",
  "RowsCopied": "6"
},
{
  "DatabaseType": "Logging",
  "TableName": "Test",
  "RowsCopied": "6"
}

I want to group by on based of table name and rows copied.
I think I need to use dictionary inside dictionary.
Let me know if someone can help

Markus Meyer
  • 3,327
  • 10
  • 22
  • 35
  • What have you tried so far? Where are you stuck? – Markus Meyer Sep 01 '22 at 06:45
  • what is the expected output? – Krishna Varma Sep 01 '22 at 07:56
  • There's loads of examples of how deserialize json into a list or dictionary. Here's one example: https://stackoverflow.com/questions/14934360/how-to-deserialize-json-string-to-object-list-in-c-sharp-dot – sr28 Sep 01 '22 at 08:08
  • Does this answer your question? [How can I deserialize JSON to a simple Dictionary in ASP.NET?](https://stackoverflow.com/questions/1207731/how-can-i-deserialize-json-to-a-simple-dictionarystring-string-in-asp-net) – sr28 Sep 01 '22 at 08:48

0 Answers0