Added JSON API for application requests.