Skip to content

Commit dece121

Browse files
authored
Update system-text-json-use-dom-utf8jsonreader-utf8jsonwriter.md (#26223)
1 parent a7880a6 commit dece121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/standard/serialization/system-text-json-use-dom-utf8jsonreader-utf8jsonwriter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ The following example shows how to use the <xref:System.Text.Json.Utf8JsonWriter
160160
In some scenarios, you might want to write "raw" JSON to a JSON payload that you're creating with `Utf8JsonWriter`. Here are typical scenarios:
161161

162162
* You have an existing JSON payload that you want to enclose in new JSON.
163-
* You want to format values differently from the default Utf8JsonWriter formatting.
163+
* You want to format values differently from the default `Utf8JsonWriter` formatting.
164164

165165
For example, you might want to customize number formatting. By default, System.Text.Json omits the decimal point for whole numbers, writing `1` rather than `1.0`, for example. The rationale is that writing fewer bytes is good for performance. But suppose the consumer of your JSON treats numbers with decimals as doubles, and numbers without decimals as integers. You might want to ensure that the numbers in an array are all recognized as doubles, by writing a decimal point and zero for whole numbers. The following example shows how to do that:
166166

0 commit comments

Comments
 (0)