This project is read-only.

How to create json formatted data using C#

Feb 24, 2015 at 12:22 PM
Hi,

I want to create below formatted json data using C#:

{ id: 'animals', stack: 2, data: [['Cats', 4],['Dogs', 2], ['Cows', 1],['Sheep', 2],['Pigs', 1]]},
{ id: 'animals2', stack: 2, data: [['Cats2', 4], ['Dogs2', 2], ['Cows2', 1], ['Sheep2', 2], ['Pigs2', 1]]},
{ id: 'animals3', stack: 1, data: [['Cats3', 4], ['Dogs3', 2],['Cows3', 1],['Sheep3', 2],['Pigs3', 1]]}

Regards,
Ravi
mcamail2002@gmail.com