Separator in current culture set as ",", but json data convert value with dot only. Also data controller return have dot as separator. How i can change it? I also want the comma to be invalid.
JSON is about data, not how that data should be displayed. Regardless of culture, in both C# and JavaScript, decimals use a period as the precision separator. As such, you'd either need to transfer the formatted value as plain string (in which case you have no validation), or the value in your JSON needs to conform with expected data format of C#/JavaScript. Client-side, you can format it to/from the correct culture display.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With