ho cercato di importare un file JSON 7.4 MB via ...mongodbimport Failure - FailedToParse: Expecting '{': offset: 0
mongoimport -d mongoimport -c test --file jsonTest.json
ma ho visto questo problema.
Wed Sep 04 13:08:52.378 exception:BSON representation of supplied JSON is too large: code FailedToParse: FailedToParse: Expecting '{': offset:0
Questo StackOverflow post presentato un problema simile con rispetto alla data che si verificano prima del 1 gennaio 1970, ma che non sembra applicabile dato il mio errore FailedToParse: Expecting '{': offset:0
.
L'hai inviato tramite un validatore JSON? – Sammaye
Ho eliminato il testo per ridurre il file da 7,4 MB a 6 KB mantenendo la struttura generale. Usando JSON Viewer (plugin Notepad ++), sono stato in grado di analizzare il testo come JSON. Quindi, ho provato a eseguire il 'mongoimport' sopra il mio file da 6 KB, ma ho ottenuto gli stessi errori che ho elencato sopra. –
Puoi pubblicare un esempio del tuo json che sta fallendo? – Ross