updated communication between java server and air app to a json string