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

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: