Make as_json serializations user-friendly for numeric types

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • bson-5.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Major Change
    • None
    • None
    • None
    • None
    • None
    • None

      Currently as_json methods in Decimal128, Int32, Int64 and Integer return canonical extended json. However, these methods are intended to be used by applications for producing data for frontends, and as such they should return frontend-friendly values. For the extended json output these classes provide as_extended_json.

            Assignee:
            Oleg Pudeyev (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: