serialze prefetched documents into json if presented