Take the 2-minute tour ×

I have an object that is created by Newtonsoft's JSON serializer. I need to get the JSON string that was used to create the object. How do I deserialize the object into a simple JSON string?

share|improve this question
add comment

1 Answer

up vote 20 down vote accepted

Try this:

public string jsonOut()
  return = JsonConvert.SerializeObject(this)
share|improve this answer
add comment

Your Answer


