Intentionally invalid sample JSON file

Last updated 2026-05-20

Verbatim contents (this will not parse)

0 B · 0 linesDownload .json

Full file is 0 B and 0 lines. Use Download for the complete payload.

Request examples

const fs = require('fs');
try {
  JSON.parse(fs.readFileSync('./sample-invalid.json', 'utf8'));
} catch (err) {
  console.error('parser error:', err.message);
}
Back to examples

Related examples