Been there! The "unexpected end of JSON input" error usually means truncated data.
Try:
```javascript
console.log(rawData.length); // Compare to expected size
```
Might be a network issue or chunked encoding. If it’s a file, `fs.readFileSync` with ‘utf8’ flag could help.
Try:
```javascript
console.log(rawData.length); // Compare to expected size
```
Might be a network issue or chunked encoding. If it’s a file, `fs.readFileSync` with ‘utf8’ flag could help.
