I am creating a JSON file on a server that is downloaded by my app which for the most part works perfectly. I am having lots of issues with parsing the JSON because of special characters in the user entered data.
How are you creating the JSON file on the server ? Most languages will have a way of 'escaping' the special characters so that they don't cause parsing problems. You could also try adding a \ before the characters in question.
Sounds to me like there are some control characters still in your document. Is the program that is creating the file adding carriage returns ? Is the server linux ? At a guess I bet that the program that creates the files is adding a carriage return/line feed to the document. To put it into jsonlint you must be opening it in an editor and using copy/paste. I bet the editor is converting the carriage returns/line feed before you copy, as is Titanium studio when you save the file.
Think you can help? Login to answer this question!