-1
What I’d like to do is convert a value from within a JSON to Double
and apply the String.Format("{0:N}", valor_JSON));
so I’d be converting 1000 -> 1.000
.
However, as already answered, it is not possible to do this inside the View, because C# runs on the server side. The solution would be to process all this before returning JSON, or using a Javascript library for this.
LINQ, I want to take a variable from my returned JSON, convert to Double to apply the
String.Format("{0:N}", ValorRecebidoDoJSONAqui));
so I can convert type 1000 to 1,000. But apparently I will have to do this before returning JSON.– Leonardo Bonetti