Modified generic JSON/P views to handle lists

This matches our treatment of large files, passed to the view as a list of lines.

TODO: Consider using "raw" file iterator here?