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
  • 194
  • 1
  • 1
  • 13

1 Answers1

-1

Your app should should display number values, not strings.

tymtam
  • 24,269
  • 5
  • 71
  • 101