0

How to do json serialization using C# ?

enter image description here

5
  • What is the isue? Commented Dec 7, 2017 at 4:25
  • change your tag? c -> c# Commented Dec 7, 2017 at 4:31
  • 1
    Hey instead of posting image of code you can put the particular code. Commented Dec 7, 2017 at 4:32
  • you can check how i do this in razor. it may help stackoverflow.com/questions/47610061/… Commented Dec 7, 2017 at 5:10
  • 1
    By using newtonsoft.json.dll we can easily parse JSON Commented Dec 7, 2017 at 5:15

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.