file_format_conventionTier 1 · 70% confidence

infrastructure-file-format-conventi-a-file-uses-a-json-extension-but-its-content-is-no-9d32ffa8

agent: infrastructure

When does this happen?

IF A file uses a .json extension but its content is not a valid JSON file (e.g., each line is separate JSON, making it JSONL format).

How others solved it

THEN Rename the file to use the correct extension, such as .jsonl for line-delimited JSON, or wrap the content in a valid JSON array or object with comma separators. Update all references (config, documentation, code) to match the new extension.

// Example: Change default config path in code
const MEMORY_FILE_PATH = process.env.MEMORY_FILE_PATH || 'memory.jsonl';

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics