Honestly, just use Python. It’s the most reliable way to convert csv to json without headaches. Here’s a quick script:
```python
import csv, json
with open('input.csv', 'r') as f:
reader = csv.DictReader(f)
data = [row for row in reader]
with open('output.json', 'w') as f:
json.dump(data, f)
```
Works every time, and you can tweak it for nested stuff.
```python
import csv, json
with open('input.csv', 'r') as f:
reader = csv.DictReader(f)
data = [row for row in reader]
with open('output.json', 'w') as f:
json.dump(data, f)
```
Works every time, and you can tweak it for nested stuff.
