Solution. Remove the backslash character from every activity name and/or description in your process.
The following characters are reserved characters and can not be used in JSON and must be properly escaped to be used in strings. Backspace to be replaced with \b. Form feed to be replaced with \f. Newline to be replaced with \n. Carriage return to be replaced with \r.
Resolving The Problem Regex r = new Regex("\(HelloWorld\)"); which generates the Invalid escape sequence error. To re-iterate, the backslash character can be used as an escape sequence for a regular expression in a recognition property or a verification point.
In JSON the only characters you must escape are \, ", and control codes. Thus in order to escape your structure, you'll need a JSON specific function.
I am working with json but i got an error Bad JSON escape sequence
var model = JsonConvert.DeserializeObject<test>(def);
public class test
{
public string test123 { get; set; }
}
My json def is "{\"test123 \": \"î'ï\u0014¹\u0019ö\\±ýŽ± \u0013Eú\", }"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With