Provide json helper for Binary and Code types

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

              Assignee:
              Ross Lawley
              Reporter:
              Daniel Crosta
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: