Provide utility encode and decode methods in BSON module

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.9
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We should provide these utility methods so that the user does not have to know about the internals of how the BSON class (and the encode and decode methods therein) in order to use them properly. For example, right now the user must do the following in order to correctly use the existing class to decode some bson bytes:

      BSON(bson_data).decode(codec_options)
      

      The new API could just provide a simple method for the user:

      decode(bson_data, codec_options)

            Assignee:
            Bernie Hackett
            Reporter:
            Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: