0

How to do json serialization using C# ?

enter image description here

Bo Persson
  • 88,437
  • 31
  • 141
  • 199
陳昱安
  • 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
  • 18,869
  • 22
  • 90
  • 106
Monish Koyott
  • 374
  • 1
  • 4
  • 20