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

How to convert bson.Document to valid JSON

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: JSON & ExtJSON
    • Labels:
      None

      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!

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

              Created:
              Updated:
              Resolved: