I know this was answered a long time ago, but you could try decoding each document separately and then you'd know which doc is causing the problem.
I use this library: https://github.com/bauman/python-bson-streaming
from bsonstream import KeyValueBSONInput
f = open("restaurants.bson", 'rb')
stream = KeyValueBSONInput(fh=f)
for dict_data in stream:
print dict_data
f.close()
I see 25359 records which all seem to decode to something like:
{u'_id': ObjectId('5671bb2e111bb7b9a7ce4d9a'),
u'address': {u'building': u'351',
u'coord': [-73.98513559999999, 40.7676919],
u'street': u'West 57 Street',
u'zipcode': u'10019'},
u'borough': u'Manhattan',
u'cuisine': u'Irish',
u'grades': [{u'date': datetime.datetime(2014, 9, 6, 0, 0),
u'grade': u'A',
u'score': 2},
{u'date': datetime.datetime(2013, 7, 22, 0, 0),
u'grade': u'A',
u'score': 11},
{u'date': datetime.datetime(2012, 7, 31, 0, 0),
u'grade': u'A',
u'score': 12},
{u'date': datetime.datetime(2011, 12, 29, 0, 0),
u'grade': u'A',
u'score': 12}],
u'name': u'Dj Reynolds Pub And Restaurant',
u'restaurant_id': u'30191841'}