jsonString has incorrect output on undefined BSON elements.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 2.2.2, 2.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Test case that fails:

      class SingleUndefinedMember {
      public:
      void run() {
      BSONObjBuilder b;
      b.appendUndefined( "a" );
      ASSERT_EQUALS( "

      { \"a\" : undefined }

      ", b.done().jsonString( Strict ) );
      }
      };

      jsonString outputs "

      { undefined }

      "

              Assignee:
              Shaun Verch (Inactive)
              Reporter:
              Shaun Verch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: