function test() { var obj = '' var aaa = JSON.parse(obj) console.log('test', aaa) } test()