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

Cursor::toJSON() to return all cursor results as a JSON array

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Suggested in mongodb/mongo-php-driver#499, this would allow obtaining all cursor result documents as JSON without requiring documents to be converted to PHP values and routed through json_encode() with a decorating iterator.

      This may be redundant with PHPC-324, as a raw BSON iterator would make it trivial to create a decorating iterator in userland that invokes MongoDB\BSON\toJSON() directly.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: