writing time index data.json.