Skip to content

Commit

Permalink
elaborate
Browse files Browse the repository at this point in the history
  • Loading branch information
mongoKart committed Oct 1, 2024
1 parent 9efc665 commit 30d11da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/upgrade/v3.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ Version 3.0 Breaking Changes
JSON standard that describes BSON documents. Relaxed Extended JSON emphasizes
readability and interoperability at the expense of type preservation.

To use a different JSON output mode, set the ``JsonWriterSettings.OutputMode`` property
to a value from the ``JsonOutputMode`` enum, as shown in the following code example:
To use a different JSON output mode, create a new ``JsonWriterSettings`` object. Set
the ``OutputMode`` property of this object to a value from the ``JsonOutputMode`` enum,
then pass the object to the ``ToJson()`` method when you serialize your document.
The following code example shows how to serialize a BSON document to Strict JSON:

.. code-block:: csharp

Expand Down

0 comments on commit 30d11da

Please sign in to comment.