I am using a third party API which is like this below. It uses Json serializer
to output
public Output(string name, object value);
I have to place the following json string in my output file from C#
Output("somename", new {my-name : "somevalue"})
The issue is C# does not allow identifiers with dash (-). How do I achieve this ?
Tried putting raw value like below but it adds back slash (\)
to the file output which is not going very well.
Output("somename", @"{""my-name"":""somevalue""}")
Any thoughts ?