it should be a string if set encoding for `readFileSync`:
```js
fs.readFileSync(jsonFile, { encoding: 'utf8' });
```