Class
JsonNumber
class JsonNumber
Module: System.Data.Json
Assembly: System.Data.dll
Source file: JsonValue.rvn
Inheritance: Object → JsonValue → JsonNumber
Part of closed hierarchy: JsonValue
Immutable validated JSON number token retaining its exact spelling without floating-point conversion.
Properties
1 item
Text: string
Gets the exact validated JSON number token, including exponent spelling and negative zero.
Methods
8 items
AsInt32() -> Result<int, JsonError>
Converts an integer token to Int32.
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
Static member:
Parse(text: string) -> Result<JsonNumber, JsonError>
Validates one JSON number token without a fixed token-size cap.
ToJsonString() -> Result<string, JsonError>
Converts this node to compact JSON text, including JSON quoting and escaping for strings.
Inherited from JsonValue.ToJsonString
ToJsonString(options: JsonSerializerOptions) -> Result<string, JsonError>
Converts this node to JSON text using the selected formatting.
Inherited from JsonValue.ToJsonString
ToString() -> string
Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.
Inherited from Object.ToString