I am facing an issue with a script that fetches objects from a remote server using an Ajax call. The server sends back objects in JSON format. However, while working on Adobe AIR, I encountered a restriction on utilizing eval() due to security concerns. As a result, I am able to receive responses from the remote server but unable to convert them into JavaScript objects. Is there any workaround for this challenge? I prefer using JSON as it can be implemented right away.
On a side note, I acknowledge the security risks associated with bypassing this limitation. However, considering my participation in a competition necessitating rapid app development, the software will only serve as a quick prototype and not intended for production purposes. Still, if there is a more efficient alternative available, I'd love to explore it.
Update:
Kudos to Theo and jsight for their valuable insights;
An important lesson learned today is the possibility of leveraging ActionScript libraries through the
<script src="lib/myClasses.swf" type="application/x-shockwave-flash"></script>tag supported by Adobe AIR. Refer to Theo's link for additional information!