JsonValue (FSharp.Data)

Instance members

Instance member Description

this.IsArray

Full Usage: this.IsArray

Returns: bool

Returns: bool

this.IsBoolean

Full Usage: this.IsBoolean

Returns: bool

Returns: bool

this.IsFloat

Full Usage: this.IsFloat

Returns: bool

Returns: bool

this.IsNull

Full Usage: this.IsNull

Returns: bool

Returns: bool

this.IsNumber

Full Usage: this.IsNumber

Returns: bool

Returns: bool

this.IsRecord

Full Usage: this.IsRecord

Returns: bool

Returns: bool

this.IsString

Full Usage: this.IsString

Returns: bool

Returns: bool

this.Request

Full Usage: this.Request

Parameters:

    url : 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.

Sends the JSON to the specified URL synchronously. Defaults to a POST request.

url : 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.

this.RequestAsync

Full Usage: this.RequestAsync

Parameters:

    url : 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.

Sends the JSON to the specified URL asynchronously. Defaults to a POST request.

url : 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.

this.ToString

Full Usage: this.ToString

Parameters:

    ?indentationSpaces : int - Number of spaces per indentation level (default 2).

Returns: string The formatted JSON string representation.

Serializes this JsonValue to a formatted (indented) string.

?indentationSpaces : int

Number of spaces per indentation level (default 2).

Returns: string

The formatted JSON string representation.

this.ToString

Full Usage: this.ToString

Parameters:

    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 JsonSaveOptions.None.

Returns: string The JSON string representation.

Serializes this JsonValue to a string with the specified formatting options.

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 JsonSaveOptions.None.

Returns: string

The JSON string representation.

this.WriteTo

Full Usage: this.WriteTo

Parameters:

    w : 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 JsonSaveOptions.None.

Serializes the JsonValue to the specified System.IO.TextWriter.

w : 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 JsonSaveOptions.None.