documents.json: return a hash instead of an array.