I have written some very simple code to createa JSON string as follows:
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
using (JsonWriter jsonWriter = new JsonTextWriter(sw))
jsonWriter.Formatting = Formatting.None;
jsonWriter.WriteValue(((short)reader / (double)10).ToString());
So, when I run this and get my string back I get the following:
Why are there the \ characters in there? Is there a way to get rid of them? The system I am sending this JSON string to doesn't like the \ characters.
I spent some time on this board and couldn't find the answer - sorry if I missed it.