Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2066

Extended json serialization

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.8.0
    • Affects Version/s: None
    • Component/s: BSON, Spec Comp
    • None
    • Fully Compatible

      bson-ruby currently implements partial serialization to extended json. Unfortunately this is done using #to_json method and this runs into problems when serializing standard library classes (e.g. Float) that have values like Infinity/NaN which are not serializable into standard json that have extended json representations.

      Therefore there need to be another method added, e.g. #to_extended_json, which will return extended json and follow the extended json spec.

      Test that Int32/Int64 in relaxed mode produce Integer values and not Int32/Int64

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: