Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1646

Interpret String instances as JSON

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • API
    • None

    Description

      One advantage of the new CRUD API in MongoCollection taking instances of Object (instead of Document) is that it can interpret String instances as JSON, which would allow usage like:

      MongoCollection<Document> collection;
       
      collection.find().filter("{filter: 2}")
                              .sort("{name: 1}")
                              .projection("{projection: 2}")

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: