Open EagleTsui opened 1 year ago
See #35 related to this issue.
I have the following custom function which will guarantee that the casing will always match .NET. Personally I think this should be used as default.
public static string GetJSONCamelCase(string value)
{
return System.Text.Json.JsonNamingPolicy.CamelCase.ConvertName(value);
}
It does not look like System.Text.Json is available in source generators at least
It is not officially supported, but it should be available. But which version of it is available depends on VS and what is loaded to VS app domain.
ID in ASP.net core will be translated to id when config json in camel case but NTypewriter will be translated iD.