Is it possible to have a valid JSON file that starts with `DOCTYPE`?

Responsive Ad Header

Question

Grade: Education Subject: Support
Is it possible to have a valid JSON file that starts with `DOCTYPE`?
Asked by:
68 Viewed 68 Answers
Responsive Ad After Question

Answer (68)

Best Answer
(196)
No, it is not possible. JSON has a very strict syntax. It must start with either a `{` for an object or `[` for an array. Any characters before that, including ``, are invalid JSON.