I am trying to persist string from an ASP.NET textarea. I need to strip out the carriage return line feeds and then break up whatever is left into a string array of 50 chara
Use:
string json = "{\r\n \"LOINC_NUM\": \"10362-2\",\r\n}"; var result = JObject.Parse(json.Replace(System.Environment.NewLine, string.Empty));