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

bsondump produces invalid JSON

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: bsondump

      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.

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

              Created:
              Updated:
              Resolved: