Implemented toJSON function on Duration so JSON.stringify returns the ISO string representation of the duration