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

#as_json on a BSON::Timestamp doesn't match spec

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.2.0
    • Affects Version/s: bson-4.1.1
    • Component/s: None
    • None

      Currently, #as_json on a BSON::Timestamp returns a document in the form:

      { "t" => 10, "i" => 50 }
      

      but the bson spec specifies it should be:

      {"$timestamp" => { "t" => 10, "i" => 50 } }
      

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            emily.stolfo Emily Stolfo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: