解析json文件时出现语法错误:
#!/usr/bin/env node
'use strict';
var pID = require('./pull.json')
这是错误:
module.js:453
throw err;
^
SyntaxError: /data/slave/jsonParse/pull.json: Unexpected token {
at Object.parse (native)
at Object.Module._extensions..json (module.js:450:27)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)