0

How to do json serialization using C# ?

enter image description here

Bo Persson
  • 90,663
  • 31
  • 146
  • 203
陳昱安
  • 5
  • 3

1 Answers1

0

You can use this code to serialize your object

var serialized = JsonConvert.SerializeObject(*Your object*);

You have to download the Newtonsoft library from here

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
Monish Koyott
  • 374
  • 1
  • 4
  • 20