Any library that expects JSON or the actual JavaScript notation to create objects (which is a superset of JSON) should work just fine with quotes.
But if you really want to delete them, you can set JsonTextWriter.QuoteName to false. To do this, write code that JsonConvert.SerializeObject() uses manually:
private static string SerializeWithoutQuote(object value) { var serializer = JsonSerializer.Create(null); var stringWriter = new StringWriter(); using (var jsonWriter = new JsonTextWriter(stringWriter)) { jsonWriter.QuoteName = false; serializer.Serialize(jsonWriter, value); return stringWriter.ToString(); } }
source share