dot-writeResultsToJson function

Write DQD results to json