generate JSON views for all resources