I\'m using the org.json.JSONObject to parse some json being sent to my servlet by an iphone. I was stuck for a while by why I would be getting an error message at all. The e
json work well with \n but if you have any other special charachters in your meesage like
\ , @ , & , # etc.. first convert them into their respective HEX value and then send your message.