Issue #1551 - Created JSON API for insights