Question
Is it possible to have a valid JSON file that starts with `DOCTYPE`?
Asked by: USER6845
68 Viewed
68 Answers
Responsive Ad After Question
Answer (68)
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.