Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-627

How to convert bson.Document to valid JSON

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • JSON & ExtJSON
    • None

    Description

      Guys

      I did a .Find() and got back a bson.Document, how can I transform this into a valid JSON string?

      I tried .ToExtJSON(false), but this doesn't produce valid JSON, since it doesn't quote new lines and tabs.

       

      Thank you!

      Attachments

        Activity

          People

            Unassigned Unassigned
            lucaswxp Lucas Pelegrino
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: