I\'m writing a tool to read JSON files. I\'m using the NewtonSoft tool to deserialize the JSOn to a C# class. Here\'s an example fragment:
\"name\": \"Fubar
If you want to initialize the Json manually, you can do:
var jsonString = "{" + "'name': 'Fubar'," + "'.NET version': '4.0'," + "'binding type': 'HTTP'," + "}"; var json = JsonConvert.DeserializeObject(jsonString); return Ok(json);
Don't forget to include using Newtonsoft.Json;
using Newtonsoft.Json;