Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-207

Correct serialized data examples for ODS documentation

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.4.0
    • Affects Version/s: 0.2.0
    • Component/s: Docs
    • None

      Re: http://10gen-labs.github.io/mongo-php-driver-prototype/ods/

      I believe the embedded addresses and friends should be objects instead of arrays in the following example:

      {
              "_id" : ObjectId("54c9664fbd21b9416f2e0501"),
              "__" : BinData(128,"UGVyc29u"),
              "name" : "Hannes",
              "age" : 31,
              "address" : [
                      [
                              BinData(128,"QWRkcmVzcw=="),
                              94086,
                              "USA"
                      ],
                      [
                              BinData(128,"QWRkcmVzcw=="),
                              200,
                              "Iceland"
                      ]
              ],
              "friends" : [
                      [
                              BinData(128,"UGVyc29u"),
                              ObjectId("54c9664fbd21b9416f2e0502"),
                              "Jeremy",
                              21,
                              [
                                      [
                                              BinData(128,"QWRkcmVzcw=="),
                                              48169,
                                              "USA"
                                      ]
                              ],
                              {
      
                              }
                      ]
              ]
      }
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: