In Json, which I parse, in some variables there is a space (difficult to fix), for example: {"Name": "Jon"}. How can it be removed later in the variable programmatically?
|
1 answer
Can be removed using String.Replace(" ",""); You can use String.TrimEnd(' '); as already said yaant
- Yes, thanks to Yaant I stumbled upon a very useful article working with strings ( metanit.com/sharp/tutorial/7.2.php ), I came up with a lot of solutions - Denisok
|
String.TrimEnd- Yaant