added saving results in json file in subdirecotry