Fixes #4696 - Add JSON gallery view
Merge pull request #5636 from Srokap/ticket_4696

Fixes #4696 - Add JSON gallery view