> Removing the line control characters allows the import to work. Is
> there a better way?
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb
> > Removing the line control characters allows the import to work. Is
> > there a better way?
> > --
> > You received this message because you are subscribed to the Google
> > Groups "mongodb-user" group.
> > To post to this group, send email to mongodb-user@googlegroups.com
> > To unsubscribe from this group, send email to
> > mongodb-user+unsubscribe@googlegroups.com
> > See also the IRC channel -- freenode.net#mongodb
> On May 16, 9:46 am, Scott Hernandez <scotthernan...@gmail.com> wrote: > > Can you post a sample to gist/pastie so we can test it? > > On May 16, 2012 9:26 AM, "WDB" <walter.breidenst...@thomsonreuters.com> > > wrote:
> > > DOS files with line control characters don't seem to import. The > > > following error is generated for every line in the import file:
> > > Removing the line control characters allows the import to work. Is > > > there a better way?
> > > -- > > > You received this message because you are subscribed to the Google > > > Groups "mongodb-user" group. > > > To post to this group, send email to mongodb-user@googlegroups.com > > > To unsubscribe from this group, send email to > > > mongodb-user+unsubscribe@googlegroups.com > > > See also the IRC channel -- freenode.net#mongodb
> > On May 16, 9:46 am, Scott Hernandez <scotthernan...@gmail.com> wrote:
> > > Can you post a sample to gist/pastie so we can test it?
> > > On May 16, 2012 9:26 AM, "WDB" <walter.breidenst...@thomsonreuters.com>
> > > wrote:
> > > > DOS files with line control characters don't seem to import. The
> > > > following error is generated for every line in the import file:
> > > > Removing the line control characters allows the import to work. Is
> > > > there a better way?
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "mongodb-user" group.
> > > > To post to this group, send email to mongodb-user@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > mongodb-user+unsubscribe@googlegroups.com
> > > > See also the IRC channel -- freenode.net#mongodb
> Mind you, NOTHING is loading for me, unless I remove the line control
> chars.
> Here's my line command:
> mongoimport --collection bddocs --file c:\data\JSON\output
> \example1.json
> -WDB
> On May 16, 10:17 am, Nat <nat.lu...@gmail.com> wrote:
> > Your data doesn't look like JSON. Are you sure that's what you import?
> Also
> > note that mongoimport takes one document per line as an input.
> > On Wednesday, 16 May 2012 21:58:49 UTC+8, WDB wrote:
> > > On May 16, 9:46 am, Scott Hernandez <scotthernan...@gmail.com> wrote:
> > > > Can you post a sample to gist/pastie so we can test it?
> > > > On May 16, 2012 9:26 AM, "WDB" <
> walter.breidenst...@thomsonreuters.com>
> > > > wrote:
> > > > > DOS files with line control characters don't seem to import. The
> > > > > following error is generated for every line in the import file:
> > > > > Removing the line control characters allows the import to work. Is
> > > > > there a better way?
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "mongodb-user" group.
> > > > > To post to this group, send email to mongodb-user@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > mongodb-user+unsubscribe@googlegroups.com
> > > > > See also the IRC channel -- freenode.net#mongodb
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb
OK. I get that, now. One document, one line. And guess what? I'm fine
with that!
I'm using JSONObject from JSON.org to convert XML, and there is an
INDENT_FACTOR argument, which, when set to zero, causes no output of
line feeds. So I'm good. Thanks again for your feedback.
On May 16, 12:22 pm, Nat Luengnaruemitchai <nat.lu...@gmail.com>
wrote:
> > Mind you, NOTHING is loading for me, unless I remove the line control
> > chars.
> > Here's my line command:
> > mongoimport --collection bddocs --file c:\data\JSON\output
> > \example1.json
> > -WDB
> > On May 16, 10:17 am, Nat <nat.lu...@gmail.com> wrote:
> > > Your data doesn't look like JSON. Are you sure that's what you import?
> > Also
> > > note that mongoimport takes one document per line as an input.
> > > On Wednesday, 16 May 2012 21:58:49 UTC+8, WDB wrote:
> > > > On May 16, 9:46 am, Scott Hernandez <scotthernan...@gmail.com> wrote:
> > > > > Can you post a sample to gist/pastie so we can test it?
> > > > > On May 16, 2012 9:26 AM, "WDB" <
> > walter.breidenst...@thomsonreuters.com>
> > > > > wrote:
> > > > > > DOS files with line control characters don't seem to import. The
> > > > > > following error is generated for every line in the import file:
> > > > > > Removing the line control characters allows the import to work. Is
> > > > > > there a better way?
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > > > Groups "mongodb-user" group.
> > > > > > To post to this group, send email to mongodb-user@googlegroups.com
> > > > > > To unsubscribe from this group, send email to
> > > > > > mongodb-user+unsubscribe@googlegroups.com
> > > > > > See also the IRC channel -- freenode.net#mongodb
> > --
> > You received this message because you are subscribed to the Google
> > Groups "mongodb-user" group.
> > To post to this group, send email to mongodb-user@googlegroups.com
> > To unsubscribe from this group, send email to
> > mongodb-user+unsubscribe@googlegroups.com
> > See also the IRC channel -- freenode.net#mongodb