I am trying to Parse some JSON Strings and I have been successful, however there are times when A string throws a quotation mark for example, “size_box”: “PO#45836,4587,3PLTS 48″x40″962LBS @ SHIPREADY BTWN 8AM-1PM”, ” Im getting the force close error when it reaches 48″x40″962LBS, So my question is, how can I parse a JSON format link if it has special characters?
Share
Whatever is generating those strings is broken and needs to be fixed by escaping
"with\".That needs to be done at source – it’s almost impossible to fix it afterwards as you won’t be able to tell which quotation marks are meant to be there and which ones (I’m guessing) indicate size of box in inches – 48″x40″ is 48 inches x 40 inches correct?
As long as the server escapes those quotation marks, it will parse correctly.