Investigate changes in SERVER-105087: Allow native conversion from string to BSON object

XMLWordPrintableJSON

    • Type: Investigation
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Developer Tools

      Original Downstream Change Summary

      Users can convert JSON strings to BSON via $convert or the shorthand expressions $toObject and $toArray. See WRITING-31886 for more details.

      Description of Linked Ticket

      Currently, users rely on the $function expression and JSON.parse to convert a string value to a JSON object. For example, this may be required for some legacy apps with documents where a JSON was stored as a string and the user wants to update such documents and store the values as JSON objects.

      The new API can be an extension to the existing $convert expression, or a new expression.

            Assignee:
            Unassigned
            Reporter:
            Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: