You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
builder.Services.AddCarter(); builder.Services.AddControllers() .AddJsonOptions(options => options.JsonSerializerOptions.PropertyNamingPolicy = null);
but output still keep lowcase for first word, like this "userStatus": "active",
I need uppercase "UserStatus": "active",
I have to changed respone code like this return Results.Json(result, new JsonSerializerOptions { PropertyNamingPolicy = null });
it can be work, but not i hoped method, i think must have other method can solve it.
The text was updated successfully, but these errors were encountered:
On Fri, 8 Dec 2023 at 09:17, Nate Ford ***@***.***> wrote:
when i use our library, i had set
builder.Services.AddCarter();
builder.Services.AddControllers() .AddJsonOptions(options =>
options.JsonSerializerOptions.PropertyNamingPolicy = null);
but output still keep lowcase for first word, like this
"userStatus": "active",
I need uppercase
"UserStatus": "active",
I have to changed respone code like this
return Results.Json(result, new JsonSerializerOptions {
PropertyNamingPolicy = null });
it can be work, but not i hoped method, i think must have other method can
solve it.
—
Reply to this email directly, view it on GitHub
<#332>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAZVJSLXV3PUJJZ2XW3Q23YILLJVAVCNFSM6AAAAABAMLQJAKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTEMRYGE2TQOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
when i use our library, i had set
builder.Services.AddCarter();
builder.Services.AddControllers() .AddJsonOptions(options => options.JsonSerializerOptions.PropertyNamingPolicy = null);
but output still keep lowcase for first word, like this
"userStatus": "active",
I need uppercase
"UserStatus": "active",
I have to changed respone code like this
return Results.Json(result, new JsonSerializerOptions { PropertyNamingPolicy = null });
it can be work, but not i hoped method, i think must have other method can solve it.
The text was updated successfully, but these errors were encountered: