0

There was a problem when I converted DataTable to Json using Newtonsoft.

My server format number is:

System.Globalization.NumberFormatInfo.CurrentInfo.CurrencyGroupSeparator = ","; // 123,456

System.Globalization.NumberFormatInfo.CurrentInfo.CurrencyDecimalSeparator = "."; // 0.1123

When I used: Newtonsoft.Json.JsonConvert.SerializeObject(table) the output number format different the server number format. enter image description here

Ly Thanh Ngo
  • 394
  • 1
  • 2
  • 15

1 Answers1

-1

Your app should should display number values, not strings.

tymtam
  • 31,798
  • 8
  • 86
  • 126