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: src/FSharp.Data.Json.Core/JsonValue.fs
+51-10Lines changed: 51 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -37,12 +37,19 @@ type JsonSaveOptions =
37
37
[<RequireQualifiedAccess>]
38
38
[<StructuredFormatDisplay("{_Print}")>]
39
39
typeJsonValue=
40
+
/// A JSON string value
40
41
| String ofstring
42
+
/// A JSON number stored as a decimal (used for numbers that fit in the decimal range)
41
43
| Number ofdecimal
44
+
/// A JSON number stored as a float (used for large numbers that do not fit in decimal)
42
45
| Float offloat
46
+
/// A JSON object, represented as an array of name-value pairs
43
47
| Record ofproperties:(string*JsonValue)[]
48
+
/// A JSON array of values
44
49
| Array ofelements:JsonValue[]
50
+
/// A JSON boolean value
45
51
| Boolean ofbool
52
+
/// A JSON null value
46
53
| Null
47
54
48
55
/// <exclude />
@@ -59,7 +66,10 @@ type JsonValue =
59
66
else
60
67
str
61
68
62
-
/// Serializes the JsonValue to the specified System.IO.TextWriter.
69
+
/// <summary>Serializes the JsonValue to the specified System.IO.TextWriter.</summary>
70
+
/// <paramname="w">The writer to serialize to.</param>
71
+
/// <paramname="saveOptions">Controls formatting: indented, compact, or compact with spaces.</param>
72
+
/// <paramname="indentationSpaces">Number of spaces per indentation level (default 2). Only used when saveOptions is <seecref="JsonSaveOptions.None"/>.</param>
/// <summary>Serializes this JsonValue to a string with the specified formatting options.</summary>
193
+
/// <paramname="saveOptions">Controls formatting: indented, compact, or compact with spaces.</param>
194
+
/// <paramname="indentationSpaces">Number of spaces per indentation level (default 2). Only used when saveOptions is <seecref="JsonSaveOptions.None"/>.</param>
0 commit comments