The copy option on document has changed format of JSON.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • No version
    • Affects Version/s: 1.49.14
    • Component/s: None
    • None
    • Environment:
      OS: Windows
      node.js / npm versions:
      Additional info:
    • Not Needed
    • None
    • Developer Tools

      Problem Statement/Rationale

      I use MongoDB Compass a fair bit on a local server that access a local database. Working with the database collections, I like to copy out documents using the copy option near the top right of a document. This normally copies over a nicely formatted JSON object, but since the most recent update, the data that is copied to the clipboard cannot be used to paste back into a collection, as it has syntax errors in it.

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

      Open up any collection, choose the first document in the collection, and click on the copy "Copy to clipboard" option. Paste the data from the clipboard to a new text file, and notice that the formatting of the JSON block is unusable as data to be added back into a collection.

      Expected Results

      Copy/paste functionality to work the same as it did prior to 1.49.14

      Actual Results

      See attached image. The data copied into the clipboard can not be used to add back into a collection using the "Add Data" button.

      Additional Notes

      Any additional information that may be useful to include.

        1. image.png
          image.png
          149 kB
        2. Screenshot 2026-08-12 at 11.36.15.png
          Screenshot 2026-08-12 at 11.36.15.png
          61 kB

            Assignee:
            Unassigned
            Reporter:
            Richard Au (EXT)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: