I have following json in file mock.json. I am trying to load it via ajax call however, I am getting this error.
Error: Parse error on line 1:
{ id: 1, name: 'My na
--^
Expecting 'STRING', '}', got 'undefined'
I used to jsonlint validator to validate json and getting above error. Whats wrong my json?
[{
id: 1,
name: 'My name',
email: '[email protected]'
}]