SerializeJSON creates JSON with non printable characters (i.e. ASCII 21)
This is invalid JSON. How can I get round this.
Would a regex removing the non printable characters work?
What regex would remove non printable characters?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, this simple solution was created for cffeed, but your problem is very similar.
First I’ve tried to use Java library StringEscapeUtils (Commons Lang API), but it didn’t escaped my contents properly. Though it is recommended for XML.
So, this cfc method works for me. Maybe will help you too.