Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json property becoming small after retriving from .net core controller

public void ConfigureServices
(IServiceCollection services)
{
    services.AddControllers()
            .AddJsonOptions(options =>
                {
                    options.JsonSerializerOptions
.PropertyNamingPolicy = null;
                });
}
Source by www.binaryintellect.net #
 
PREVIOUS NEXT
Tagged: #json #property #small #retriving #core #controller
ADD COMMENT
Topic
Name
9+2 =