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

Parse Extended JSON into BSON

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Do
    • Icon: Minor - P4 Minor - P4
    • None
    • 0.0.2
    • JSON & ExtJSON
    • None

    Description

      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"}
      }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: