changed json format for GET all documents