You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Text.Json/JsonCommentHandling.xml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
<BaseTypeName>System.Enum</BaseTypeName>
14
14
</Base>
15
15
<Docs>
16
-
<summary>To be added.</summary>
16
+
<summary>Defines how the <seecref="T:System.Text.Json.Utf8JsonReader" /> struct handles comments.</summary>
17
17
<remarks>To be added.</remarks>
18
18
</Docs>
19
19
<Members>
@@ -34,7 +34,7 @@
34
34
</ReturnValue>
35
35
<MemberValue>1</MemberValue>
36
36
<Docs>
37
-
<summary>To be added.</summary>
37
+
<summary>Allows comments within the JSON input and treats them as valid tokens. While reading, the caller can to access the comment values.</summary>
38
38
</Docs>
39
39
</Member>
40
40
<MemberMemberName="Disallow">
@@ -54,7 +54,7 @@
54
54
</ReturnValue>
55
55
<MemberValue>0</MemberValue>
56
56
<Docs>
57
-
<summary>To be added.</summary>
57
+
<summary>Doesn't allow comments within the JSON input. Comments are treated as invalid JSON if found, and a <seecref="T:System.Text.Json.JsonReaderException" /> is thrown. This is the default value.</summary>
58
58
</Docs>
59
59
</Member>
60
60
<MemberMemberName="Skip">
@@ -74,8 +74,8 @@
74
74
</ReturnValue>
75
75
<MemberValue>2</MemberValue>
76
76
<Docs>
77
-
<summary>To be added.</summary>
77
+
<summary>Allows comments within the JSON input and ignores them. The <seecref="T:System.Text.Json.Utf8JsonReader" /> behaves as if no comments are present.</summary>
Copy file name to clipboardExpand all lines: xml/System.Text.Json/JsonReaderException.xml
+22-14Lines changed: 22 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@
14
14
</Base>
15
15
<Interfaces />
16
16
<Docs>
17
-
<summary>To be added.</summary>
17
+
<summary>The exception that is thrown when <seecref="T:System.Text.Json.Utf8JsonReader" /> encounters invalid data or data disallowed by any of its options.</summary>
<paramname="info">The <seecref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
96
+
<paramname="context">The <seecref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
97
+
<summary>Sets the <seecref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.</summary>
90
98
<remarks>To be added.</remarks>
91
99
</Docs>
92
100
</Member>
@@ -106,10 +114,10 @@
106
114
<ReturnType>System.Int64</ReturnType>
107
115
</ReturnValue>
108
116
<Docs>
109
-
<summary>To be added.</summary>
110
-
<value>To be added.</value>
117
+
<summary>Gets the number of lines read (starting at 0) before the exception.</summary>
118
+
<value>The number of lines read (starting at 0) before the exception.</value>
Copy file name to clipboardExpand all lines: xml/System.Text.Json/JsonReaderState.xml
+46-15Lines changed: 46 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,18 @@
14
14
</Base>
15
15
<Interfaces />
16
16
<Docs>
17
-
<summary>To be added.</summary>
18
-
<remarks>To be added.</remarks>
17
+
<summary>Defines an opaque type that holds and saves all the relevant state information, which must be provided to the <seecref="T:System.Text.Json.Utf8JsonReader" /> to continue reading after processing incomplete data.</summary>
18
+
<remarks>
19
+
<formattype="text/markdown"><![CDATA[
20
+
21
+
## Remarks
22
+
23
+
`JsonReaderState` is required to support reentrancy when reading incomplete data, and to continue reading once more data is available.
24
+
Unlike the <xref:System.Text.Json.Utf8JsonReader> struct, which is a ref struct,
25
+
this type can survive across async/await boundaries, and hence it's required to provide support for reading more data asynchronously before continuing with a new instance of the <xref:System.Text.Json.Utf8JsonReader>.
<paramname="maxDepth">The maximum depth allowed when reading JSON. This is an optional parameter, and its default value is 64. Reading past this depth throws a <seecref="T:System.Text.Json.JsonReaderException" /></param>
48
+
<paramname="options">The customized behavior of the <seecref="T:System.Text.Json.Utf8JsonReader" /> that is different from the JSON RFC (for example, how to handle comments).
49
+
This is an optional parameter and, by default, the <seecref="T:System.Text.Json.Utf8JsonReader" /> struct follows the JSON RFC strictly (that is, comments within the JSON are invalid).</param>
50
+
<summary>Initializes a new instance of the <seecref="T:System.Text.Json.JsonReaderState" /> struct.</summary>
51
+
<remarks>
52
+
<formattype="text/markdown"><![CDATA[
53
+
54
+
## Remarks
55
+
56
+
A <xref:System.Text.Json.JsonReaderState> instance must be passed to the <xref:System.Text.Json.Utf8JsonReader> constructor with the JSON data.
57
+
Unlike the <xref:System.Text.Json.Utf8JsonReader>, which is a ref struct, the state can survive across async/await boundaries, and hence this type is required to provide support for reading more data asynchronously before continuing with a new instance of the <xref:System.Text.Json.Utf8JsonReader> class.
58
+
59
+
]]></format>
60
+
</remarks>
61
+
<exceptioncref="T:System.ArgumentException">
62
+
<paramrefname="maxDepth" /> is less than or equal to 0.</exception>
41
63
</Docs>
42
64
</Member>
43
65
<MemberMemberName="BytesConsumed">
@@ -56,8 +78,8 @@
56
78
<ReturnType>System.Int64</ReturnType>
57
79
</ReturnValue>
58
80
<Docs>
59
-
<summary>To be added.</summary>
60
-
<value>To be added.</value>
81
+
<summary>Gets the total number of bytes consumed by the <seecref="T:System.Text.Json.Utf8JsonReader" /> so far for the given UTF-8 encoded input text.</summary>
82
+
<value>The total number of bytes consumed by the <seecref="T:System.Text.Json.Utf8JsonReader" /> so far.</value>
61
83
<remarks>To be added.</remarks>
62
84
</Docs>
63
85
</Member>
@@ -77,9 +99,17 @@
77
99
<ReturnType>System.Int32</ReturnType>
78
100
</ReturnValue>
79
101
<Docs>
80
-
<summary>To be added.</summary>
102
+
<summary>Gets the maximum depth allowed when reading JSON.</summary>
81
103
<value>To be added.</value>
82
-
<remarks>To be added.</remarks>
104
+
<remarks>
105
+
<formattype="text/markdown"><![CDATA[
106
+
107
+
## Remarks
108
+
109
+
Reading past `MaxDepth` throws a <xref:System.Text.Json.JsonReaderException>.
<summary>Gets the custom behavior to use when reading JSON data using the <seecref="T:System.Text.Json.Utf8JsonReader" /> struct that may deviate from strict adherence to the JSON specification, which is the default behavior.</summary>
132
+
<value>The custom behavior to use when reading JSON data.</value>
103
133
<remarks>To be added.</remarks>
104
134
</Docs>
105
135
</Member>
@@ -119,10 +149,11 @@
119
149
<ReturnType>System.SequencePosition</ReturnType>
120
150
</ReturnValue>
121
151
<Docs>
122
-
<summary>To be added.</summary>
123
-
<value>To be added.</value>
152
+
<summary>Gets the current <seecref="T:System.SequencePosition" /> within the provided UTF-8 encoded input ReadOnlySequence<byte>. If the <seecref="T:System.Text.Json.Utf8JsonReader" /> struct was constructed
153
+
with a ReadOnlySpan<byte> instead, this will always return a default <seecref="T:System.SequencePosition" />.</summary>
154
+
<value>The current <seecref="T:System.SequencePosition" /> within the provided UTF-8 encoded input ReadOnlySequence<byte>.</value>
Copy file name to clipboardExpand all lines: xml/System.Text.Json/JsonWriterOptions.xml
+26-7Lines changed: 26 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,17 @@
14
14
</Base>
15
15
<Interfaces />
16
16
<Docs>
17
-
<summary>To be added.</summary>
18
-
<remarks>To be added.</remarks>
17
+
<summary>Allows the user to define custom behavior when writing JSON using the <seecref="T:System.Text.Json.Utf8JsonWriter" />.</summary>
18
+
<remarks>
19
+
<formattype="text/markdown"><![CDATA[
20
+
21
+
## Remarks
22
+
23
+
By default, the JSON is written without any indentation or extra white space.
24
+
Also, <xref:System.Text.Json.Utf8JsonWriter> throws an exception if the user attempts to write structurally invalid JSON.
25
+
26
+
]]></format>
27
+
</remarks>
19
28
</Docs>
20
29
<Members>
21
30
<MemberMemberName="Indented">
@@ -34,8 +43,8 @@
34
43
<ReturnType>System.Boolean</ReturnType>
35
44
</ReturnValue>
36
45
<Docs>
37
-
<summary>To be added.</summary>
38
-
<value>To be added.</value>
46
+
<summary>Gets or sets a value that indicates whether the <seecref="T:System.Text.Json.Utf8JsonWriter" /> should format the JSON output, which includes indenting nested JSON tokens, adding new lines, and adding white space between property names and values.</summary>
47
+
<value><seelangword="true" /> to format the JSON output; <seelangword="false" /> to write without any extra white space. The default is <seelangword="false" />.</value>
39
48
<remarks>To be added.</remarks>
40
49
</Docs>
41
50
</Member>
@@ -55,9 +64,19 @@
55
64
<ReturnType>System.Boolean</ReturnType>
56
65
</ReturnValue>
57
66
<Docs>
58
-
<summary>To be added.</summary>
59
-
<value>To be added.</value>
60
-
<remarks>To be added.</remarks>
67
+
<summary>Gets or sets a value that indicates whether the <seecref="T:System.Text.Json.Utf8JsonWriter" /> should skip structural validation and allow the user to write invalid JSON.</summary>
68
+
<value><seelangword="true" /> to skip structural validation and allow invalid JSON; <seelangword="false" /> to throw an <seecref="T:System.InvalidOperationException" /> on any attempt to write invalid JSON.
69
+
</value>
70
+
<remarks>
71
+
<formattype="text/markdown"><![CDATA[
72
+
73
+
## Remarks
74
+
75
+
If the JSON being written is known to be correct, then skipping validation (by setting this property to `true`) could improve performance.
76
+
An example of invalid JSON where the writer will throw (when `SkipValidation` is set to `false`) is when you write a value within a JSON object without a property name.
Copy file name to clipboardExpand all lines: xml/System.Text.Json/JsonWriterState.xml
+33-12Lines changed: 33 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,18 @@
14
14
</Base>
15
15
<Interfaces />
16
16
<Docs>
17
-
<summary>To be added.</summary>
18
-
<remarks>To be added.</remarks>
17
+
<summary>Defines an opaque type that holds and saves all the relevant state information which must be provided to the <seecref="T:System.Text.Json.Utf8JsonWriter" /> struct to continue writing after completing a partial write.</summary>
18
+
<remarks>
19
+
<formattype="text/markdown"><![CDATA[
20
+
21
+
## Remarks
22
+
23
+
This type is required to support reentrancy when writing incomplete data and to continue writing in chunks.
24
+
Unlike the <xref:System.Text.Json.Utf8JsonWriter" />, which is a ref struct,
25
+
this type can survive across async/await boundaries, and hence this type is required to provide support for writing more JSON text asynchronously before continuing with a new instance of the <xref:System.Text.Json.Utf8JsonWriter>.
<paramname="options">The customized behavior of the <seecref="T:System.Text.Json.Utf8JsonWriter" /> struct.
47
+
By default, the <seecref="T:System.Text.Json.Utf8JsonWriter" /> writes JSON minimized (that is, with no extra white space) and validates that the JSON data being written is structurally valid according to JSON RFC.</param>
48
+
<summary>Initializes a new instance of the <seecref="T:System.Text.Json.JsonWriterState" /> struct.</summary>
49
+
<remarks>
50
+
<formattype="text/markdown"><![CDATA[
51
+
52
+
## Remarks
53
+
54
+
An instance of this state must be passed to the <xref:System.Text.Json.Utf8JsonWriter> constructor with the output destination.
55
+
Unlike the <xref:System.Text.Json.Utf8JsonWriter>, which is a ref struct, the state can survive across async/await boundaries, and hence this type is required to provide support for reading
56
+
more data asynchronously before continuing with a new instance of the <xref:System.Text.Json.Utf8JsonWriter> struct.
57
+
58
+
]]></format>
59
+
</remarks>
39
60
</Docs>
40
61
</Member>
41
62
<MemberMemberName="BytesCommitted">
@@ -54,8 +75,8 @@
54
75
<ReturnType>System.Int64</ReturnType>
55
76
</ReturnValue>
56
77
<Docs>
57
-
<summary>To be added.</summary>
58
-
<value>To be added.</value>
78
+
<summary>Gets the total number of bytes committed to the output by the <seecref="T:System.Text.Json.Utf8JsonWriter" /> struct so far. This indicates how much the <seecref="T:System.Buffers.IBufferWriter`1" /> has advanced.</summary>
79
+
<value>The total number of bytes committed to the output.</value>
59
80
<remarks>To be added.</remarks>
60
81
</Docs>
61
82
</Member>
@@ -75,8 +96,8 @@
75
96
<ReturnType>System.Int64</ReturnType>
76
97
</ReturnValue>
77
98
<Docs>
78
-
<summary>To be added.</summary>
79
-
<value>To be added.</value>
99
+
<summary>Gets the total number of bytes written by the <seecref="T:System.Text.Json.Utf8JsonWriter" /> struct so far. This includes data that has been written beyond what has already been committed.</summary>
0 commit comments