Share via


JsonExtensions.IsNumber(JToken) Method

Definition

Indicates whether or not the given JSON token is a numeric literal.

public static bool IsNumber (this Newtonsoft.Json.Linq.JToken token);
static member IsNumber : Newtonsoft.Json.Linq.JToken -> bool
<Extension()>
Public Function IsNumber (token As JToken) As Boolean

Parameters

token
Newtonsoft.Json.Linq.JToken

The token to check.

Returns

true if the given JSON token represents a number, false otherwise.

Applies to