I'm trying to get Json.Net to serialise a property name without quote marks, and finding it difficult to locate documentation on Google. How can I do this?
It's in a very small part of a large Json render, so I'd prefer to either add a property attribute, or override the serialising method on the class.
Currently, the it renders like this:
"event_modal":
{
    "href":"file.html",
    "type":"full"
}
And I'm hoping to get it to render like: (href and type are without quotes)
"event_modal":
{
    href:"file.html",
    type:"full"
}
From the class:
public class ModalOptions
{
    public object href { get; set; }
    public object type { get; set; }
}
 
     
     
    