Adds tojson methods to TimeRange and Update objects