Aspnet Core Decimal binding not working on non English Culture : <p>I have an aspnet core app that runs with a non english configuration (spanish):</p>

<pre><code>public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
    {
        ......
        app.UseRequestLocalization(new RequestLocalizationOptions
        {
            DefaultRequestCulture = new RequestCulture(new CultureInfo("es-AR"))
            ,SupportedCultures = new List&lt;CultureInfo&gt;
            {
                new CultureInfo("es-AR")
            }
            ,SupportedUICultures = new List&lt;CultureInfo&gt;
            {
                new CultureInfo("es")
            }
        });

        .........
    }
</code></pre>

<p>In english a decimal number has its decimal part delimited with a dot, but in spanish a comma is used:</p>

<ul>
<li>10256.35 english </li>
<li>10256,35 spanish</li>
</ul>

<p>I have this action in a controller:</p>

<pre><code> [HttpPost]
 public decimal Test(decimal val)
 {
     return val;
 }
</code></pre>

<p>If I use postman and send to that action a json like this {val: 15.30}, then val in the action recives a 0 (binding not working because of the culture). If I send a json like this {val: 15,30} then in the action I recive 15.30
The problem I have is, I need the action to accept decimals with commas, because that is the format that comes from inputs type text in the app's forms. But i also need to accept decimal with a dot that comes from request in json format.  There is no way to specify a decimal/float in json that accepts a comma (send it as string is not an option). How can I do this??? I'm driving my self crazy with this.</p>

<p>Thanks!!</p>
