Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-314

Parse Extended JSON into BSON

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 0.0.2
    • Component/s: JSON & ExtJSON
    • Labels:
      None

      It would be nice to allow the parsing of extended JSON in the new go driver. Something similar to the `bson.UnmarshalJSON()` function in the *mgo driver*

      for example, allow expression like this to be correctly parsed to BSON:

      { "_id": ObjectId("59b7887b90afeae466d0cdcb") }
      

      currently, we have to use `$oid` instead:

      { "_id": {
          "$oid": "59b7887b90afeae466d0cdcb"}
      }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            felix2626 adrien petel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: