Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-362

Provide json helper for Binary and Code types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 2.3
    • None
    • None

    Description

      Because Binary and Code extend the built-in str type, the default callback in JSONEncoder cannot be used to change their representation.

      Originally reported in: https://github.com/mongodb/mongo-python-driver/pull/52

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            dcrosta Daniel Crosta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: