Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-140

bsondump produces invalid JSON

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • None
    • None
    • bsondump

    Description

      bsondump currently produces invalid json for any
      bson file that includes date objects. For example:

      { "_id" : "4e422f07ee4375537d0002fa", "ts" : Date( 1312960263075 ), "s" : "A string"}

      The Date ( ... ) bit will choke any validating JSON parser.

      Additionally, by default the bsondump tool appends a line to the end
      of the output that looks something like this:

      Sun Aug 14 20:41:48 33 objects found

      Again, this will choke any JSON parser that attempts to consume the
      output. It would be better if this either wasn't included at all, was
      sent to stderr or could be turned off with a --quiet command line
      argument.

      Attachments

        Issue Links

          Activity

            People

              david.golden@mongodb.com David Golden
              simonw Simon Willison
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: