Allow setting time range in JSON.