请根据以下代码输出JSON格式的结果，显示每隔0.5秒数从0到1之间的数，要求结果包含3个数据点：

```python
import time
start_time = time.time()
end_time = start_time + 1
values = []

while time.time() < end_time:
    current_time = time.time()
    value = current_time - start_time
    values.append(value)
    time.sleep(0.5)
```
user
```json
{
  "data_points": [
    {
      "time": 0.0,
      "value": 0.0
    },
    {
      "time": 0.5,
      "value": 0.5
    },
    {
      "time": 1.0,
      "value": 1.0
    }
  ]
}
```
assistant