The web interface supports several different methods of querying the database via JSON-encoded queries. Responses are likewise encoded as JSON. Documentation is available as part of the included ClinStudy::Web::Controller::Query module.
Wiki: Home