Я использую node.js, чтобы использовать API для потоковой передачи в Twitter.Все работает хорошо, кроме случаев, когда я пытаюсь разобрать JSON, я возвращаюсь.Вот пример того, что я пытаюсь проанализировать:
{
"text": "NEWS Nº2559 (use google translator to read it): http://t.co/dF3ClUC",
"in_reply_to_user_id": null,
"in_reply_to_status_id": null,
"favorited": false,
"in_reply_to_status_id_str": null,
"id_str": "93748566299918337",
"in_reply_to_screen_name": null,
"in_reply_to_user_id_str": null,
"geo": null,
"source": "web",
"contributors": null,
"retweeted": false,
"retweet_count": 0,
"entities": {
"user_mentions": [],
"hashtags": [],
"urls": [
{
"display_url": "luxatenealibros.blogspot.com/2011/07/lux-at…",
"indices": [
48,
67
],
"expanded_url": "http://luxatenealibros.blogspot.com/2011/07/lux-atenea-news-n2559-cinderella-fables.html",
"url": "http://t.co/dF3ClUC"
}
]
},
"place": null,
"coordinates": null,
"user": {
"favourites_count": 0,
"profile_sidebar_fill_color": "efefef",
"profile_image_url": "http://a0.twimg.com/profile_images/983835547/logo_LUX_ATENEA_WEBZINE_normal.JPG",
"default_profile_image": false,
"show_all_inline_media": false,
"geo_enabled": false,
"profile_background_tile": true,
"screen_name": "LUXATENEAWEBZIN",
"id_str": "112305851",
"profile_link_color": "009999",
"url": null,
"description": "LUX ATENEA WEBZINE\u000d\u000aREVISTA CULTURAL GÓTICA ATIS&NYD\u000d\u000a",
"follow_request_sent": null,
"statuses_count": 3027,
"verified": false,
"profile_sidebar_border_color": "eeeeee",
"time_zone": null,
"contributors_enabled": false,
"profile_use_background_image": true,
"location": "",
"is_translator": false,
"lang": "es",
"profile_background_image_url_https": "https://si0.twimg.com/images/themes/theme14/bg.gif",
"profile_background_color": "131516",
"protected": false,
"listed_count": 2,
"profile_background_image_url": "http://a1.twimg.com/images/themes/theme14/bg.gif",
"friends_count": 3,
"followers_count": 55,
"name": "LUX ATENEA WEBZINE",
"notifications": null,
"created_at": "Mon Feb 08 00:53:45 +0000 2010",
"id": 112305851,
"default_profile": false,
"following": null,
"utc_offset": null,
"profile_text_color": "333333",
"profile_image_url_https": "https://si0.twimg.com/profile_images/983835547/logo_LUX_ATENEA_WEBZINE_normal.JPG"
},
"truncated": false,
"id": 93748566299918340,
"created_at": "Wed Jul 20 18:26:14 +0000 2011"
}
jsonlint.com говорит мне, что это действительный json, но невозможно проанализировать его из node.js.Есть идеи почему?