views and logic for returning json blobs