# es/no-json
disallow the
JSON
class
- ✅ The following configurations enable this rule:
plugin:es/no-new-in-es5
andplugin:es/restrict-to-es3
This rule reports ES5 JSON
class as errors.
# Examples
⛔ Examples of incorrect code for this rule:
/*eslint es/no-json: error */
var obj = JSON.parse(text)
var str = JSON.stringify(data)