我JSON對象(從數據庫返回此JSON對象):在的NodeJS,在使用時json.stringify() - >錯誤
{ created_at: 'Wed Nov 21 19:28:24 +0000 2012', id: 271334264140869630, id_str: '271334264140869633', }{ created_at: 'Wed Nov 21 19:28:24 +0000 2012', id: 271334264140869630, id_str: '271334264140869633', }
當我使用JSON.stringify(OBJ) - >
{ "created_at": "Wed Nov 21 19:28:24 +0000 2012", "id": "271334264140869630", "id_str": "271334264140869633" }{ "created_at": "Wed Nov 21 19:28:24 +0000 2012", "id": "271334264140869630", "id_str": "271334264140869633" }
這OBJ上http://jsonlint.com/無效的,因爲錯誤:期待 'EOF', '}', '', ']'
請幫助我解決這個錯誤。
JavaScript對象從數據庫返回無效或者在你發佈的內容。 –
你是否在一個循環中串化和打印?請顯示一些生成所有這些的代碼。 – loganfsmyth
請在下面檢查我的json –