I think the word "clean" isn't the right idea, but I am trying to make sure that the data I am getting from the database is ready to be inserted into JSON objects. I would like to find a packaged deal for this, or if JSON.Simple does this and I just haven't run into it. But double quotes, single quotes (for obvious reasons), and new lines are destroying my output or failing to display at all.
Any help or information would be greatly appreciated. Ok, found the JSONSimple escape function, but it creates literals...
Someone was telling me I could parse correctly at the Javascript level after hitting the data with the escape function. Didn't realize just how detailed this stuff gets... and why can't I find a single class or library to do this?