Normally works well, but sometimes the error appears Error #1132: Invalid JSON parse input because it can be? var rawData:Object = JSON.parse(message);