Fix typo in JSON example

It used named exports, whereas it was paralleling a module that uses `module.exports =`.