JSON/REST interface to app server