Python - Map / Reduce - How do I read JSON specific field in using DISCO count words example
- 阅读更多 关于 Python - Map / Reduce - How do I read JSON specific field in using DISCO count words example
问题 I'm following along with the DISCO example for counting words from a file: Counting Words as a map/reduce job I have no issues getting this working, however I want to try reading in a specific field from a text file that contains JSON strings. The file has lines like: {"favorited": false, "in_reply_to_user_id": 306846931, "contributors": null, "truncated": false, "text": "@CataDuarte8 No! av\u00edseme cuando vaya ah salir para yo salir igual!", "created_at": "Wed Apr 04 20:25:37 +0000 2012",