JSON API for reports