Communication with my connection inside MongoDB indicates that the problem is that the backup file contains several BSON documents within it, and my code was trying to read it all as one.
It is reasonably easy to read a file containing several JSON documents and discern that it contains several JSON documents that must be separated before parsing, but as BSON is a binary representation, it is less so.
No comments:
Post a Comment