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

mongoexport generates invalid json for integers

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.3
    • Component/s: None
    • None

      ➜  ~  mongoexport --collection testdata
      2015-05-14T14:45:01.518-0700	connected to: localhost
      {"_id":{"$oid":"555516d360f0cc0553277ba1"},"x":NumberInt(10)}
      {"_id":{"$oid":"555516d360f0cc0553277ba2"},"x":NumberInt(1)}
      {"_id":{"$oid":"555516d360f0cc0553277ba3"},"x":0.1}
      {"_id":{"$oid":"555516d360f0cc0553277ba4"},"x":0.01}
      {"_id":{"$oid":"555516d360f0cc0553277ba5"},"x":0.001}
      {"_id":{"$oid":"555516d360f0cc0553277ba6"},"x":0.0001}
      {"_id":{"$oid":"555516d360f0cc0553277ba7"},"x":1e-05}
      {"_id":{"$oid":"555516d360f0cc0553277ba8"},"x":1e-06}
      {"_id":{"$oid":"555516d360f0cc0553277ba9"},"x":1e-07}
      {"_id":{"$oid":"555516d360f0cc0553277baa"},"x":1e-08}
      {"_id":{"$oid":"555516d360f0cc0553277bab"},"x":1e-09}
      {"_id":{"$oid":"555516d360f0cc0553277bac"},"x":1e-10}
      {"_id":{"$oid":"5555175760f0cc0553277bad"},"x":NumberInt(3)}
      {"_id":{"$oid":"5555175760f0cc0553277bae"},"x":NumberInt(7)}
      {"_id":{"$oid":"5555175760f0cc0553277baf"},"x":NumberInt(100)}
      {"_id":{"$oid":"5555175760f0cc0553277bb0"},"x":NumberInt(101)}
      

            Assignee:
            shraya.ramani Shraya Ramani
            Reporter:
            Jeroenooms Jeroen Ooms [X]
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: