I have the following JSON:
{
"request" : {
"language" : "en",
"title" : "placeholder",
"year" : "2014"
}
}
which I'm trying to parse using the following code:
var json = require('../filename);
Oddly, I receive the SyntaxError
/home/username/code/filename:2
"request" : {
^
SyntaxError: Unexpected token :
(...)
The JSON is perfectly valid according to JSONLint. Am I missing something very obvious?