return all records formatted as json
result format