json_util._HAS_OBJECT_PAIRS_HOOK check is too simplistic

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 3.6
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We currently set _HAS_OBJECT_PAIRS_HOOK to True if we can import simplejson. That's not good enough. We also need to check the version of simplejson to ensure it actually supports object_pairs_hook.

      This problem was discovered with the Evergreen nightly builds using machines with ancient versions of simplejson.

              Assignee:
              Bernie Hackett
              Reporter:
              Bernie Hackett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: