docs are now returned as a JSON array, one element per file