JSON data should normally be stored in files with extension 'json'. If it is stored in files with extension 'js' or 'jsx' (which are normally associated with JavaScript), developers might attempt to parse or execute the JSON data as JavaScript, which can lead to parse errors.

Rename the file to have extension 'json'.

  • Internet Engineering Taskforce: RFC 7159: The JavaScript Object Notation (JSON) Data Interchange Format.