JsonValue Type
Represents a JSON value. Large numbers that do not fit in the Decimal type are represented using the Float case, while smaller numbers are represented as decimals to avoid precision loss.
Union cases
| Union case | Description |
|
|
Full Usage:
Boolean bool
Parameters:
bool
|
|
Full Usage:
Float float
Parameters:
float
|
|
Full Usage:
Null
|
|
Full Usage:
Number decimal
Parameters:
decimal
|
|
|
|
Full Usage:
String string
Parameters:
string
|
Instance members
| Instance member | Description |
Full Usage:
this.Request
Parameters:
string
-
The URL to send the JSON to.
?httpMethod : string
-
The HTTP method to use (default: POST).
?headers : (string * string) seq
-
Additional HTTP headers to include.
Returns: HttpResponse
An HttpResponse containing the server's response.
|
|
Full Usage:
this.RequestAsync
Parameters:
string
-
The URL to send the JSON to.
?httpMethod : string
-
The HTTP method to use (default: POST).
?headers : (string * string) seq
-
Additional HTTP headers to include.
Returns: Async<HttpResponse>
An async computation yielding an HttpResponse containing the server's response.
|
|
Full Usage:
this.ToString
Parameters:
int
-
Number of spaces per indentation level (default 2).
Returns: string
The formatted JSON string representation.
|
|
Full Usage:
this.ToString
Parameters:
JsonSaveOptions
-
Controls formatting: indented, compact, or compact with spaces.
?indentationSpaces : int
-
Number of spaces per indentation level (default 2). Only used when saveOptions is None.
Returns: string
The JSON string representation.
|
|
Full Usage:
this.WriteTo
Parameters:
TextWriter
-
The writer to serialize to.
saveOptions : JsonSaveOptions
-
Controls formatting: indented, compact, or compact with spaces.
?indentationSpaces : int
-
Number of spaces per indentation level (default 2). Only used when saveOptions is None.
|
|
Static members
| Static member | Description |
|
|
|
|
Full Usage:
JsonValue.Load(reader)
Parameters:
TextReader
-
The text reader to read JSON from.
Returns: JsonValue
A JsonValue representing the parsed JSON.
|
|
|
|
|
|
|
|
|
FSharp.Data