Added export of map and reduce attempts to json.