how to convert stringwritter to json in c# code example Example: string to json c# JObject json = JObject.Parse(str);